diff options
author | Joe Perches <joe@perches.com> | 2012-05-15 17:20:32 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-05 15:32:10 -0400 |
commit | 499f42bb03a9bd8a23f73e7c3886f70f52e7edc5 (patch) | |
tree | f0a1ee12e47d46f58094fded70bd7ebf3b49b4c8 /include | |
parent | d63e9ae3b12fd0c6a3795c9b08de6b476f80b8c3 (diff) |
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')
-rw-r--r-- | include/net/mac80211.h | 11 |
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 { \ | |||
3857 | } while (0) | 3857 | } while (0) |
3858 | #endif | 3858 | #endif |
3859 | 3859 | ||
3860 | #ifdef CONFIG_MAC80211_IBSS_DEBUG | ||
3861 | #define ibss_vdbg(fmt, ...) \ | ||
3862 | pr_debug(fmt, ##__VA_ARGS__) | ||
3863 | #else | ||
3864 | #define ibss_vdbg(fmt, ...) \ | ||
3865 | do { \ | ||
3866 | if (0) \ | ||
3867 | pr_debug(fmt, ##__VA_ARGS__); \ | ||
3868 | } while (0) | ||
3869 | #endif | ||
3870 | |||
3860 | #endif /* MAC80211_H */ | 3871 | #endif /* MAC80211_H */ |