diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2008-11-28 11:48:05 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-05 09:35:08 -0500 |
commit | 04bd4638097c767278fdf12d50fecc8b60194d39 (patch) | |
tree | 8bad1080889360aa06ffc967bb2625eecd3db26e /drivers/net/wireless/ath9k/eeprom.c | |
parent | d9a1f48648edbe99fa432626ce6964a1b58f7281 (diff) |
ath9k: Use cleaner debug masks
Remove all the useless __func__ prefixes in debug messages,
and replace the DPRINTF macro with a function.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/eeprom.c')
-rw-r--r-- | drivers/net/wireless/ath9k/eeprom.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath9k/eeprom.c b/drivers/net/wireless/ath9k/eeprom.c index 466dbce2c5f7..e180c9043df6 100644 --- a/drivers/net/wireless/ath9k/eeprom.c +++ b/drivers/net/wireless/ath9k/eeprom.c | |||
@@ -116,7 +116,7 @@ static int ath9k_hw_flash_map(struct ath_hal *ah) | |||
116 | 116 | ||
117 | if (!ahp->ah_cal_mem) { | 117 | if (!ahp->ah_cal_mem) { |
118 | DPRINTF(ah->ah_sc, ATH_DBG_EEPROM, | 118 | DPRINTF(ah->ah_sc, ATH_DBG_EEPROM, |
119 | "%s: cannot remap eeprom region \n", __func__); | 119 | "cannot remap eeprom region \n"); |
120 | return -EIO; | 120 | return -EIO; |
121 | } | 121 | } |
122 | 122 | ||
@@ -149,7 +149,7 @@ static bool ath9k_hw_fill_eeprom(struct ath_hal *ah) | |||
149 | 149 | ||
150 | if (!ath9k_hw_use_flash(ah)) { | 150 | if (!ath9k_hw_use_flash(ah)) { |
151 | DPRINTF(ah->ah_sc, ATH_DBG_EEPROM, | 151 | DPRINTF(ah->ah_sc, ATH_DBG_EEPROM, |
152 | "%s: Reading from EEPROM, not flash\n", __func__); | 152 | "Reading from EEPROM, not flash\n"); |
153 | ar5416_eep_start_loc = 256; | 153 | ar5416_eep_start_loc = 256; |
154 | } | 154 | } |
155 | 155 | ||
@@ -162,8 +162,7 @@ static bool ath9k_hw_fill_eeprom(struct ath_hal *ah) | |||
162 | if (!ath9k_hw_nvram_read(ah, addr + ar5416_eep_start_loc, | 162 | if (!ath9k_hw_nvram_read(ah, addr + ar5416_eep_start_loc, |
163 | eep_data)) { | 163 | eep_data)) { |
164 | DPRINTF(ah->ah_sc, ATH_DBG_EEPROM, | 164 | DPRINTF(ah->ah_sc, ATH_DBG_EEPROM, |
165 | "%s: Unable to read eeprom region \n", | 165 | "Unable to read eeprom region \n"); |
166 | __func__); | ||
167 | return false; | 166 | return false; |
168 | } | 167 | } |
169 | eep_data++; | 168 | eep_data++; |
@@ -185,12 +184,11 @@ static int ath9k_hw_check_eeprom(struct ath_hal *ah) | |||
185 | if (!ath9k_hw_nvram_read(ah, AR5416_EEPROM_MAGIC_OFFSET, | 184 | if (!ath9k_hw_nvram_read(ah, AR5416_EEPROM_MAGIC_OFFSET, |
186 | &magic)) { | 185 | &magic)) { |
187 | DPRINTF(ah->ah_sc, ATH_DBG_EEPROM, | 186 | DPRINTF(ah->ah_sc, ATH_DBG_EEPROM, |
188 | "%s: Reading Magic # failed\n", __func__); | 187 | "Reading Magic # failed\n"); |
189 | return false; | 188 | return false; |
190 | } | 189 | } |
191 | 190 | ||
192 | DPRINTF(ah->ah_sc, ATH_DBG_EEPROM, "%s: Read Magic = 0x%04X\n", | 191 | DPRINTF(ah->ah_sc, ATH_DBG_EEPROM, "Read Magic = 0x%04X\n", magic); |
193 | __func__, magic); | ||
194 | 192 | ||
195 | if (magic != AR5416_EEPROM_MAGIC) { | 193 | if (magic != AR5416_EEPROM_MAGIC) { |
196 | magic2 = swab16(magic); | 194 | magic2 = swab16(magic); |
@@ -1205,11 +1203,11 @@ bool ath9k_hw_set_power_cal_table(struct ath_hal *ah, | |||
1205 | ((pdadcValues[4 * j + 3] & 0xFF) << 24); | 1203 | ((pdadcValues[4 * j + 3] & 0xFF) << 24); |
1206 | REG_WRITE(ah, regOffset, reg32); | 1204 | REG_WRITE(ah, regOffset, reg32); |
1207 | 1205 | ||
1208 | DPRINTF(ah->ah_sc, ATH_DBG_PHY_IO, | 1206 | DPRINTF(ah->ah_sc, ATH_DBG_REG_IO, |
1209 | "PDADC (%d,%4x): %4.4x %8.8x\n", | 1207 | "PDADC (%d,%4x): %4.4x %8.8x\n", |
1210 | i, regChainOffset, regOffset, | 1208 | i, regChainOffset, regOffset, |
1211 | reg32); | 1209 | reg32); |
1212 | DPRINTF(ah->ah_sc, ATH_DBG_PHY_IO, | 1210 | DPRINTF(ah->ah_sc, ATH_DBG_REG_IO, |
1213 | "PDADC: Chain %d | PDADC %3d Value %3d | " | 1211 | "PDADC: Chain %d | PDADC %3d Value %3d | " |
1214 | "PDADC %3d Value %3d | PDADC %3d Value %3d | " | 1212 | "PDADC %3d Value %3d | PDADC %3d Value %3d | " |
1215 | "PDADC %3d Value %3d |\n", | 1213 | "PDADC %3d Value %3d |\n", |