libertas: disable debugging output by default

Marcelo Tosatti mtosatti at redhat.unroutablecom
Sun Dec 24 04:30:49 EST 2006


Commit:     7c50279cd3f8b411355941341af6e16cb70e0a1e
Parent:     8644e1b332d8fb3931b9fb815d4404fd86db8971
commit 7c50279cd3f8b411355941341af6e16cb70e0a1e
Author:     Marcelo Tosatti <mtosatti at redhat.com>
AuthorDate: Fri Dec 22 21:41:16 2006 -0200
Commit:     Marcelo Tosatti <mtosatti at redhat.com>
CommitDate: Fri Dec 22 21:41:16 2006 -0200

    libertas: disable debugging output by default
    
    Disable debugging output by default.
    
    That way we can turn the compile-time flag on for OLPC builds,
    and pass libertas_debug=1 for troubleshooting on field.
    
    Signed-off-by: Marcelo Tosatti <mtosatti at redhat.com>
---
 drivers/net/wireless/libertas/wlan_defs.h |    3 +++
 drivers/net/wireless/libertas/wlan_fw.c   |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/libertas/wlan_defs.h b/drivers/net/wireless/libertas/wlan_defs.h
index 3161e9f..b3551db 100644
--- a/drivers/net/wireless/libertas/wlan_defs.h
+++ b/drivers/net/wireless/libertas/wlan_defs.h
@@ -120,6 +120,9 @@ static inline void HEXDUMP(char *prompt,
 {
 	int i = 0;
 
+	if (!libertas_debug)
+		return;
+
 	printk(KERN_DEBUG "%s: ", prompt);
 	for (i = 1; i <= len; i++) {
 		printk("%02x ", (u8) * buf);
diff --git a/drivers/net/wireless/libertas/wlan_fw.c b/drivers/net/wireless/libertas/wlan_fw.c
index 93df002..b0f89e2 100644
--- a/drivers/net/wireless/libertas/wlan_fw.c
+++ b/drivers/net/wireless/libertas/wlan_fw.c
@@ -48,7 +48,7 @@ #include "if_usb.h"
 char *libertas_fw_name = NULL;
 module_param_named(fw_name, libertas_fw_name, charp, 0644);
 
-unsigned int libertas_debug = 1;
+unsigned int libertas_debug = 0;
 module_param(libertas_debug, int, 0);
 
 /**


More information about the Commits-kernel mailing list