提交 12c5ffb5 编写于 作者: J Joe Perches 提交者: John W. Linville

cfg80211: Update REG_DBG_PRINT macro and uses

Several uses were missing terminating newlines.
Typo fix and macro neatening.
Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 f74b9d36
...@@ -49,10 +49,8 @@ ...@@ -49,10 +49,8 @@
#include "nl80211.h" #include "nl80211.h"
#ifdef CONFIG_CFG80211_REG_DEBUG #ifdef CONFIG_CFG80211_REG_DEBUG
#define REG_DBG_PRINT(format, args...) \ #define REG_DBG_PRINT(format, args...) \
do { \ printk(KERN_DEBUG pr_fmt(format), ##args)
printk(KERN_DEBUG pr_fmt(format), ##args); \
} while (0)
#else #else
#define REG_DBG_PRINT(args...) #define REG_DBG_PRINT(args...)
#endif #endif
...@@ -890,7 +888,7 @@ static bool ignore_reg_update(struct wiphy *wiphy, ...@@ -890,7 +888,7 @@ static bool ignore_reg_update(struct wiphy *wiphy,
wiphy->flags & WIPHY_FLAG_CUSTOM_REGULATORY) { wiphy->flags & WIPHY_FLAG_CUSTOM_REGULATORY) {
REG_DBG_PRINT("Ignoring regulatory request %s " REG_DBG_PRINT("Ignoring regulatory request %s "
"since the driver uses its own custom " "since the driver uses its own custom "
"regulatory domain ", "regulatory domain\n",
reg_initiator_name(initiator)); reg_initiator_name(initiator));
return true; return true;
} }
...@@ -904,7 +902,7 @@ static bool ignore_reg_update(struct wiphy *wiphy, ...@@ -904,7 +902,7 @@ static bool ignore_reg_update(struct wiphy *wiphy,
!is_world_regdom(last_request->alpha2)) { !is_world_regdom(last_request->alpha2)) {
REG_DBG_PRINT("Ignoring regulatory request %s " REG_DBG_PRINT("Ignoring regulatory request %s "
"since the driver requires its own regulatory " "since the driver requires its own regulatory "
"domain to be set first", "domain to be set first\n",
reg_initiator_name(initiator)); reg_initiator_name(initiator));
return true; return true;
} }
...@@ -1474,7 +1472,7 @@ static void reg_process_pending_hints(void) ...@@ -1474,7 +1472,7 @@ static void reg_process_pending_hints(void)
/* When last_request->processed becomes true this will be rescheduled */ /* When last_request->processed becomes true this will be rescheduled */
if (last_request && !last_request->processed) { if (last_request && !last_request->processed) {
REG_DBG_PRINT("Pending regulatory request, waiting " REG_DBG_PRINT("Pending regulatory request, waiting "
"for it to be processed..."); "for it to be processed...\n");
goto out; goto out;
} }
...@@ -2187,7 +2185,7 @@ void reg_device_remove(struct wiphy *wiphy) ...@@ -2187,7 +2185,7 @@ void reg_device_remove(struct wiphy *wiphy)
static void reg_timeout_work(struct work_struct *work) static void reg_timeout_work(struct work_struct *work)
{ {
REG_DBG_PRINT("Timeout while waiting for CRDA to reply, " REG_DBG_PRINT("Timeout while waiting for CRDA to reply, "
"restoring regulatory settings"); "restoring regulatory settings\n");
restore_regulatory_settings(true); restore_regulatory_settings(true);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册