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>
This commit is contained in:
parent
d63e9ae3b1
commit
499f42bb03
3 changed files with 41 additions and 55 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue