aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath.h')
-rw-r--r--drivers/net/wireless/ath/ath.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath.h b/drivers/net/wireless/ath/ath.h
index c1d699fd571..efc01110dc3 100644
--- a/drivers/net/wireless/ath/ath.h
+++ b/drivers/net/wireless/ath/ath.h
@@ -255,7 +255,7 @@ enum ATH_DEBUG {
255 255
256#define ath_dbg(common, dbg_mask, fmt, ...) \ 256#define ath_dbg(common, dbg_mask, fmt, ...) \
257do { \ 257do { \
258 if ((common)->debug_mask & dbg_mask) \ 258 if ((common)->debug_mask & ATH_DBG_##dbg_mask) \
259 _ath_printk(KERN_DEBUG, common, fmt, ##__VA_ARGS__); \ 259 _ath_printk(KERN_DEBUG, common, fmt, ##__VA_ARGS__); \
260} while (0) 260} while (0)
261 261
@@ -265,10 +265,13 @@ do { \
265#else 265#else
266 266
267static inline __attribute__ ((format (printf, 3, 4))) 267static inline __attribute__ ((format (printf, 3, 4)))
268void ath_dbg(struct ath_common *common, enum ATH_DEBUG dbg_mask, 268void _ath_dbg(struct ath_common *common, enum ATH_DEBUG dbg_mask,
269 const char *fmt, ...) 269 const char *fmt, ...)
270{ 270{
271} 271}
272#define ath_dbg(common, dbg_mask, fmt, ...) \
273 _ath_dbg(common, ATH_DBG_##dbg_mask, fmt, ##__VA_ARGS__)
274
272#define ATH_DBG_WARN(foo, arg...) do {} while (0) 275#define ATH_DBG_WARN(foo, arg...) do {} while (0)
273#define ATH_DBG_WARN_ON_ONCE(foo) ({ \ 276#define ATH_DBG_WARN_ON_ONCE(foo) ({ \
274 int __ret_warn_once = !!(foo); \ 277 int __ret_warn_once = !!(foo); \