From 07671f55eef118158101fa5b3eb58377c9869c6c Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Tue, 3 Jul 2012 15:28:28 +0200 Subject: [PATCH] As compat includes linux/device.h well before iwlwifi, the definitions from there are used without DEBUG, but iwlwifi defines DEBUG to get debug output. Use dev_printk instead of dev_dbg to get debugging back. Signed-off-by: Johannes Berg Signed-off-by: Luis R. Rodriguez --- patches/57-iwlwifi-debug-fix.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 patches/57-iwlwifi-debug-fix.patch diff --git a/patches/57-iwlwifi-debug-fix.patch b/patches/57-iwlwifi-debug-fix.patch new file mode 100644 index 000000000000..4b2dfa9d26f6 --- /dev/null +++ b/patches/57-iwlwifi-debug-fix.patch @@ -0,0 +1,19 @@ +Due to compat including linux/device.h before we do, +we don't get a chance to #define DEBUG to get our +debugging prints. This patch replaces dev_dbg with +dev_printk to make them show up again. + +--- a/drivers/net/wireless/iwlwifi/iwl-debug.c ++++ b/drivers/net/wireless/iwlwifi/iwl-debug.c +@@ -138,8 +138,9 @@ void __iwl_dbg(struct device *dev, + + va_copy(args2, args); + vaf.va = &args2; +- dev_dbg(dev, "%c %s %pV", in_interrupt() ? 'I' : 'U', +- function, &vaf); ++ dev_printk(KERN_DEBUG, dev, "%c %s %pV", ++ in_interrupt() ? 'I' : 'U', ++ function, &vaf); + va_end(args2); + } + #endif -- 2.30.2