Skip to content

Commit

Permalink
wireless: fix build breakage when CONFIG_CFG80211_REG_DEBUG not set
Browse files Browse the repository at this point in the history
Bad macro definition in "cfg80211: add a regulatory debug print"...

Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
John W. Linville committed Jan 5, 2010
1 parent 4f9b2a7 commit 8271195
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
#include "nl80211.h"

#ifdef CONFIG_CFG80211_REG_DEBUG
#define REG_DBG_PRINT(args...) \
#define REG_DBG_PRINT(format, args...) \
do { \
printk(KERN_DEBUG args); \
printk(KERN_DEBUG format , ## args); \
} while (0)
#else
#define REG_DBG_PRINT(args)
#define REG_DBG_PRINT(args...)
#endif

/* Receipt of information from last regulatory request */
Expand Down

0 comments on commit 8271195

Please sign in to comment.