summaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-05-15 14:20:32 -0700
committerJohn W. Linville <linville@tuxdriver.com>2012-06-05 15:32:10 -0400
commit499f42bb03a9bd8a23f73e7c3886f70f52e7edc5 (patch)
treef0a1ee12e47d46f58094fded70bd7ebf3b49b4c8 /include/net/mac80211.h
parentd63e9ae3b12fd0c6a3795c9b08de6b476f80b8c3 (diff)
downloadblackbird-obmc-linux-499f42bb03a9bd8a23f73e7c3886f70f52e7edc5.tar.gz
blackbird-obmc-linux-499f42bb03a9bd8a23f73e7c3886f70f52e7edc5.zip
net: mac80211: Add and use ibss_vdbg debugging macro
Simplify the use of #ifdef CONFIG_MAC80211_IBSS_DEBUG/#endif by adding a logging macro to encapsulate the test. Convert the appropriate uses too. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 808462e2a71d..98da61e52a45 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -3857,4 +3857,15 @@ do { \
} while (0)
#endif
+#ifdef CONFIG_MAC80211_IBSS_DEBUG
+#define ibss_vdbg(fmt, ...) \
+ pr_debug(fmt, ##__VA_ARGS__)
+#else
+#define ibss_vdbg(fmt, ...) \
+do { \
+ if (0) \
+ pr_debug(fmt, ##__VA_ARGS__); \
+} while (0)
+#endif
+
#endif /* MAC80211_H */
OpenPOWER on IntegriCloud