libertas: disable debugging output by default
Marcelo Tosatti
mtosatti at redhat.unroutablecom
Sun Dec 24 04:24:34 EST 2006
Commit: 5f7c440371fdcb6d25d9ff5eb34ef0e974db0c23
Parent: ce198085cd298043adb41c3ce13d5c29cc05d2fd
commit 5f7c440371fdcb6d25d9ff5eb34ef0e974db0c23
Author: Marcelo Tosatti <mtosatti at redhat.com>
AuthorDate: Fri Dec 22 21:41:16 2006 -0200
Commit: Andres Salomon <dilinger at debian.org>
CommitDate: Sun Dec 24 04:30:44 2006 -0500
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>
(cherry picked from 7c50279cd3f8b411355941341af6e16cb70e0a1e commit)
---
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