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/recv.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/recv.c')
-rw-r--r-- | drivers/net/wireless/ath9k/recv.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/net/wireless/ath9k/recv.c b/drivers/net/wireless/ath9k/recv.c index e49e32356e92..0b9a3d9c5824 100644 --- a/drivers/net/wireless/ath9k/recv.c +++ b/drivers/net/wireless/ath9k/recv.c | |||
@@ -105,8 +105,7 @@ static struct sk_buff *ath_rxbuf_alloc(struct ath_softc *sc, u32 len) | |||
105 | skb_reserve(skb, sc->sc_cachelsz - off); | 105 | skb_reserve(skb, sc->sc_cachelsz - off); |
106 | } else { | 106 | } else { |
107 | DPRINTF(sc, ATH_DBG_FATAL, | 107 | DPRINTF(sc, ATH_DBG_FATAL, |
108 | "%s: skbuff alloc of size %u failed\n", | 108 | "skbuff alloc of size %u failed\n", len); |
109 | __func__, len); | ||
110 | return NULL; | 109 | return NULL; |
111 | } | 110 | } |
112 | 111 | ||
@@ -263,11 +262,7 @@ static void ath_opmode_init(struct ath_softc *sc) | |||
263 | 262 | ||
264 | /* calculate and install multicast filter */ | 263 | /* calculate and install multicast filter */ |
265 | mfilt[0] = mfilt[1] = ~0; | 264 | mfilt[0] = mfilt[1] = ~0; |
266 | |||
267 | ath9k_hw_setmcastfilter(ah, mfilt[0], mfilt[1]); | 265 | ath9k_hw_setmcastfilter(ah, mfilt[0], mfilt[1]); |
268 | DPRINTF(sc, ATH_DBG_CONFIG , | ||
269 | "%s: RX filter 0x%x, MC filter %08x:%08x\n", | ||
270 | __func__, rfilt, mfilt[0], mfilt[1]); | ||
271 | } | 266 | } |
272 | 267 | ||
273 | int ath_rx_init(struct ath_softc *sc, int nbufs) | 268 | int ath_rx_init(struct ath_softc *sc, int nbufs) |
@@ -285,8 +280,8 @@ int ath_rx_init(struct ath_softc *sc, int nbufs) | |||
285 | min(sc->sc_cachelsz, | 280 | min(sc->sc_cachelsz, |
286 | (u16)64)); | 281 | (u16)64)); |
287 | 282 | ||
288 | DPRINTF(sc, ATH_DBG_CONFIG, "%s: cachelsz %u rxbufsize %u\n", | 283 | DPRINTF(sc, ATH_DBG_CONFIG, "cachelsz %u rxbufsize %u\n", |
289 | __func__, sc->sc_cachelsz, sc->sc_rxbufsize); | 284 | sc->sc_cachelsz, sc->sc_rxbufsize); |
290 | 285 | ||
291 | /* Initialize rx descriptors */ | 286 | /* Initialize rx descriptors */ |
292 | 287 | ||
@@ -294,8 +289,7 @@ int ath_rx_init(struct ath_softc *sc, int nbufs) | |||
294 | "rx", nbufs, 1); | 289 | "rx", nbufs, 1); |
295 | if (error != 0) { | 290 | if (error != 0) { |
296 | DPRINTF(sc, ATH_DBG_FATAL, | 291 | DPRINTF(sc, ATH_DBG_FATAL, |
297 | "%s: failed to allocate rx descriptors: %d\n", | 292 | "failed to allocate rx descriptors: %d\n", error); |
298 | __func__, error); | ||
299 | break; | 293 | break; |
300 | } | 294 | } |
301 | 295 | ||