All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] compat-wireless: fix debugging in iwlwifi
@ 2012-07-03 13:28 Johannes Berg
  2012-07-03 15:47 ` Luis R. Rodriguez
  0 siblings, 1 reply; 8+ messages in thread
From: Johannes Berg @ 2012-07-03 13:28 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: linux-wireless

From: Johannes Berg <johannes.berg@intel.com>

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 <johannes.berg@intel.com>
---
 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 0000000..4b2dfa9
--- /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
-- 
1.7.10




^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-07-09 22:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-03 13:28 [PATCH] compat-wireless: fix debugging in iwlwifi Johannes Berg
2012-07-03 15:47 ` Luis R. Rodriguez
2012-07-03 16:16   ` Luis R. Rodriguez
2012-07-03 16:21     ` Johannes Berg
2012-07-03 16:28       ` Joe Perches
2012-07-03 16:47         ` Johannes Berg
2012-07-09 22:27           ` Luis R. Rodriguez
2012-07-03 16:30       ` Luis R. Rodriguez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.