aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/rc.c
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2008-11-28 11:48:05 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-12-05 09:35:08 -0500
commit04bd4638097c767278fdf12d50fecc8b60194d39 (patch)
tree8bad1080889360aa06ffc967bb2625eecd3db26e /drivers/net/wireless/ath9k/rc.c
parentd9a1f48648edbe99fa432626ce6964a1b58f7281 (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/rc.c')
-rw-r--r--drivers/net/wireless/ath9k/rc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath9k/rc.c b/drivers/net/wireless/ath9k/rc.c
index 7c08583a7943..7d5affda3b8b 100644
--- a/drivers/net/wireless/ath9k/rc.c
+++ b/drivers/net/wireless/ath9k/rc.c
@@ -1326,13 +1326,13 @@ static struct ath_rate_table *ath_choose_rate_table(struct ath_softc *sc,
1326 mode = ATH9K_MODE_11NA_HT40PLUS; 1326 mode = ATH9K_MODE_11NA_HT40PLUS;
1327 break; 1327 break;
1328 default: 1328 default:
1329 DPRINTF(sc, ATH_DBG_RATE, "Invalid band\n"); 1329 DPRINTF(sc, ATH_DBG_CONFIG, "Invalid band\n");
1330 return NULL; 1330 return NULL;
1331 } 1331 }
1332 1332
1333 BUG_ON(mode >= ATH9K_MODE_MAX); 1333 BUG_ON(mode >= ATH9K_MODE_MAX);
1334 1334
1335 DPRINTF(sc, ATH_DBG_RATE, "Choosing rate table for mode: %d\n", mode); 1335 DPRINTF(sc, ATH_DBG_CONFIG, "Choosing rate table for mode: %d\n", mode);
1336 return sc->hw_rate_table[mode]; 1336 return sc->hw_rate_table[mode];
1337} 1337}
1338 1338
@@ -1572,8 +1572,7 @@ static void *ath_rate_alloc_sta(void *priv, struct ieee80211_sta *sta, gfp_t gfp
1572 rate_priv = kzalloc(sizeof(struct ath_rate_priv), gfp); 1572 rate_priv = kzalloc(sizeof(struct ath_rate_priv), gfp);
1573 if (!rate_priv) { 1573 if (!rate_priv) {
1574 DPRINTF(sc, ATH_DBG_FATAL, 1574 DPRINTF(sc, ATH_DBG_FATAL,
1575 "%s: Unable to allocate private rc structure\n", 1575 "Unable to allocate private rc structure\n");
1576 __func__);
1577 return NULL; 1576 return NULL;
1578 } 1577 }
1579 1578