summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtlwifi/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rtlwifi/debug.h')
-rw-r--r--drivers/net/wireless/rtlwifi/debug.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/wireless/rtlwifi/debug.h b/drivers/net/wireless/rtlwifi/debug.h
index 588986a1e21..8c139693354 100644
--- a/drivers/net/wireless/rtlwifi/debug.h
+++ b/drivers/net/wireless/rtlwifi/debug.h
@@ -165,14 +165,13 @@ do { \
} \
} while (0)
-#define RT_TRACE(rtlpriv, comp, level, fmt) \
+#define RT_TRACE(rtlpriv, comp, level, fmt, ...) \
do { \
if (unlikely(((comp) & rtlpriv->dbg.global_debugcomponents) && \
((level) <= rtlpriv->dbg.global_debuglevel))) { \
- printk(KERN_DEBUG "%s:%s():<%lx-%x> ", \
+ printk(KERN_DEBUG "%s:%s():<%lx-%x> " fmt, \
KBUILD_MODNAME, __func__, \
- in_interrupt(), in_atomic()); \
- printk fmt; \
+ in_interrupt(), in_atomic(), ##__VA_ARGS__); \
} \
} while (0)