aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2010-10-21 15:10:11 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-11-15 13:24:17 -0500
commitb87b0128894efd3bbf7272a579f71b3a2bc500d1 (patch)
tree2de3f9ab99230d26fb3ec9fb4ba17d6bb2d89be6
parentd91e41b690f795c04af4eb6fe28d2cafd3291051 (diff)
ath: add a ATH_DBG_WARN()
To be used to throw out warnings only for developers. This can be used by some corner cases that developers already know can be hit but developers want to address so to avoid spewing out a warning this can only be enabled with CONFIG_ATH_DEBUG enabled. Cc: Ben Greear <greearb@candelatech.com> Cc: Kyungwan Nam <kyungwan.nam@atheros.com> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/debug.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/debug.h b/drivers/net/wireless/ath/debug.h
index 64e4af2c2887..f207007ee391 100644
--- a/drivers/net/wireless/ath/debug.h
+++ b/drivers/net/wireless/ath/debug.h
@@ -70,11 +70,13 @@ enum ATH_DEBUG {
70#ifdef CONFIG_ATH_DEBUG 70#ifdef CONFIG_ATH_DEBUG
71void ath_print(struct ath_common *common, int dbg_mask, const char *fmt, ...) 71void ath_print(struct ath_common *common, int dbg_mask, const char *fmt, ...)
72 __attribute__ ((format (printf, 3, 4))); 72 __attribute__ ((format (printf, 3, 4)));
73#define ATH_DBG_WARN(foo, arg...) WARN(foo, arg)
73#else 74#else
74static inline void __attribute__ ((format (printf, 3, 4))) 75static inline void __attribute__ ((format (printf, 3, 4)))
75ath_print(struct ath_common *common, int dbg_mask, const char *fmt, ...) 76ath_print(struct ath_common *common, int dbg_mask, const char *fmt, ...)
76{ 77{
77} 78}
79#define ATH_DBG_WARN(foo, arg)
78#endif /* CONFIG_ATH_DEBUG */ 80#endif /* CONFIG_ATH_DEBUG */
79 81
80/** Returns string describing opmode, or NULL if unknown mode. */ 82/** Returns string describing opmode, or NULL if unknown mode. */