From: Johannes Berg Date: Tue, 3 Jul 2012 13:28:28 +0000 (+0200) Subject: As compat includes linux/device.h well before iwlwifi, the X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=958b46a8fa214f689f29b0574811f1b9dedba23d;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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