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/ar9002_mac.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/ar9002_mac.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9002_mac.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9002_mac.c b/drivers/net/wireless/ath/ath9k/ar9002_mac.c index b5920168606d..7b6417b5212e 100644 --- a/drivers/net/wireless/ath/ath9k/ar9002_mac.c +++ b/drivers/net/wireless/ath/ath9k/ar9002_mac.c | |||
@@ -107,7 +107,7 @@ static bool ar9002_hw_get_isr(struct ath_hw *ah, enum ath9k_int *masked) | |||
107 | } | 107 | } |
108 | 108 | ||
109 | if (isr & AR_ISR_RXORN) { | 109 | if (isr & AR_ISR_RXORN) { |
110 | ath_dbg(common, ATH_DBG_INTERRUPT, | 110 | ath_dbg(common, INTERRUPT, |
111 | "receive FIFO overrun interrupt\n"); | 111 | "receive FIFO overrun interrupt\n"); |
112 | } | 112 | } |
113 | 113 | ||
@@ -143,24 +143,24 @@ static bool ar9002_hw_get_isr(struct ath_hw *ah, enum ath9k_int *masked) | |||
143 | 143 | ||
144 | if (fatal_int) { | 144 | if (fatal_int) { |
145 | if (sync_cause & AR_INTR_SYNC_HOST1_FATAL) { | 145 | if (sync_cause & AR_INTR_SYNC_HOST1_FATAL) { |
146 | ath_dbg(common, ATH_DBG_ANY, | 146 | ath_dbg(common, ANY, |
147 | "received PCI FATAL interrupt\n"); | 147 | "received PCI FATAL interrupt\n"); |
148 | } | 148 | } |
149 | if (sync_cause & AR_INTR_SYNC_HOST1_PERR) { | 149 | if (sync_cause & AR_INTR_SYNC_HOST1_PERR) { |
150 | ath_dbg(common, ATH_DBG_ANY, | 150 | ath_dbg(common, ANY, |
151 | "received PCI PERR interrupt\n"); | 151 | "received PCI PERR interrupt\n"); |
152 | } | 152 | } |
153 | *masked |= ATH9K_INT_FATAL; | 153 | *masked |= ATH9K_INT_FATAL; |
154 | } | 154 | } |
155 | if (sync_cause & AR_INTR_SYNC_RADM_CPL_TIMEOUT) { | 155 | if (sync_cause & AR_INTR_SYNC_RADM_CPL_TIMEOUT) { |
156 | ath_dbg(common, ATH_DBG_INTERRUPT, | 156 | ath_dbg(common, INTERRUPT, |
157 | "AR_INTR_SYNC_RADM_CPL_TIMEOUT\n"); | 157 | "AR_INTR_SYNC_RADM_CPL_TIMEOUT\n"); |
158 | REG_WRITE(ah, AR_RC, AR_RC_HOSTIF); | 158 | REG_WRITE(ah, AR_RC, AR_RC_HOSTIF); |
159 | REG_WRITE(ah, AR_RC, 0); | 159 | REG_WRITE(ah, AR_RC, 0); |
160 | *masked |= ATH9K_INT_FATAL; | 160 | *masked |= ATH9K_INT_FATAL; |
161 | } | 161 | } |
162 | if (sync_cause & AR_INTR_SYNC_LOCAL_TIMEOUT) { | 162 | if (sync_cause & AR_INTR_SYNC_LOCAL_TIMEOUT) { |
163 | ath_dbg(common, ATH_DBG_INTERRUPT, | 163 | ath_dbg(common, INTERRUPT, |
164 | "AR_INTR_SYNC_LOCAL_TIMEOUT\n"); | 164 | "AR_INTR_SYNC_LOCAL_TIMEOUT\n"); |
165 | } | 165 | } |
166 | 166 | ||