diff options
author | Joe Perches <joe@perches.com> | 2011-12-15 17:55:53 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-12-19 14:35:31 -0500 |
commit | d2182b69dcb6a68b1ef6070b2efd094e13dea3f1 (patch) | |
tree | 92da8da22d48540d9f28b1e91ba0d1befbac5fe9 /drivers/net/wireless/ath/ath9k/wmi.c | |
parent | a85e1d55974646a442d95911e3f7d7a891ea9ac5 (diff) |
ath: Convert ath_dbg(bar, ATH_DBG_<FOO>, to ath_dbg(bar, FOO
Add ATH_DBG_ to macros to shorten the uses and
reduce the line count.
Coalesce ath_dbg formats.
Add missing spaces to coalesced formats.
Add missing newline terminations to ath_dbg formats.
Align ath_dbg arguments where appropriate.
Standardize ath_dbg formats without periods.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/wmi.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/wmi.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath9k/wmi.c b/drivers/net/wireless/ath/ath9k/wmi.c index 35422fc1f2ce..65c8894c5f81 100644 --- a/drivers/net/wireless/ath/ath9k/wmi.c +++ b/drivers/net/wireless/ath/ath9k/wmi.c | |||
@@ -187,7 +187,7 @@ void ath9k_fatal_work(struct work_struct *work) | |||
187 | fatal_work); | 187 | fatal_work); |
188 | struct ath_common *common = ath9k_hw_common(priv->ah); | 188 | struct ath_common *common = ath9k_hw_common(priv->ah); |
189 | 189 | ||
190 | ath_dbg(common, ATH_DBG_FATAL, "FATAL Event received, resetting device\n"); | 190 | ath_dbg(common, FATAL, "FATAL Event received, resetting device\n"); |
191 | ath9k_htc_reset(priv); | 191 | ath9k_htc_reset(priv); |
192 | } | 192 | } |
193 | 193 | ||
@@ -330,8 +330,7 @@ int ath9k_wmi_cmd(struct wmi *wmi, enum wmi_cmd_id cmd_id, | |||
330 | 330 | ||
331 | time_left = wait_for_completion_timeout(&wmi->cmd_wait, timeout); | 331 | time_left = wait_for_completion_timeout(&wmi->cmd_wait, timeout); |
332 | if (!time_left) { | 332 | if (!time_left) { |
333 | ath_dbg(common, ATH_DBG_WMI, | 333 | ath_dbg(common, WMI, "Timeout waiting for WMI command: %s\n", |
334 | "Timeout waiting for WMI command: %s\n", | ||
335 | wmi_cmd_to_name(cmd_id)); | 334 | wmi_cmd_to_name(cmd_id)); |
336 | mutex_unlock(&wmi->op_mutex); | 335 | mutex_unlock(&wmi->op_mutex); |
337 | return -ETIMEDOUT; | 336 | return -ETIMEDOUT; |
@@ -342,8 +341,7 @@ int ath9k_wmi_cmd(struct wmi *wmi, enum wmi_cmd_id cmd_id, | |||
342 | return 0; | 341 | return 0; |
343 | 342 | ||
344 | out: | 343 | out: |
345 | ath_dbg(common, ATH_DBG_WMI, | 344 | ath_dbg(common, WMI, "WMI failure for: %s\n", wmi_cmd_to_name(cmd_id)); |
346 | "WMI failure for: %s\n", wmi_cmd_to_name(cmd_id)); | ||
347 | mutex_unlock(&wmi->op_mutex); | 345 | mutex_unlock(&wmi->op_mutex); |
348 | kfree_skb(skb); | 346 | kfree_skb(skb); |
349 | 347 | ||