diff options
author | Joe Perches <joe@perches.com> | 2010-12-02 22:12:36 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-07 16:34:47 -0500 |
commit | 3800276a40751539a920ef8e0537ef2e19126799 (patch) | |
tree | ccf058ea286aef7faa79aea4236b30c1b8cb757e /drivers/net/wireless/ath/ath9k/recv.c | |
parent | 21a99f934949807dc0c9dc7642bbf0081b7582f9 (diff) |
ath: Convert ath_print(.., ATH_DBG_FATAL to ath_err
So these errors are always emitted at KERN_ERR level.
Remove ARRAY_SIZE casts, use printf type %zu
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/recv.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/recv.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c index 262c81595f6d..c477be06894e 100644 --- a/drivers/net/wireless/ath/ath9k/recv.c +++ b/drivers/net/wireless/ath/ath9k/recv.c | |||
@@ -269,7 +269,7 @@ static int ath_rx_edma_init(struct ath_softc *sc, int nbufs) | |||
269 | dev_kfree_skb_any(skb); | 269 | dev_kfree_skb_any(skb); |
270 | bf->bf_mpdu = NULL; | 270 | bf->bf_mpdu = NULL; |
271 | bf->bf_buf_addr = 0; | 271 | bf->bf_buf_addr = 0; |
272 | ath_print(common, ATH_DBG_FATAL, | 272 | ath_err(common, |
273 | "dma_mapping_error() on RX init\n"); | 273 | "dma_mapping_error() on RX init\n"); |
274 | error = -ENOMEM; | 274 | error = -ENOMEM; |
275 | goto rx_init_fail; | 275 | goto rx_init_fail; |
@@ -335,9 +335,9 @@ int ath_rx_init(struct ath_softc *sc, int nbufs) | |||
335 | error = ath_descdma_setup(sc, &sc->rx.rxdma, &sc->rx.rxbuf, | 335 | error = ath_descdma_setup(sc, &sc->rx.rxdma, &sc->rx.rxbuf, |
336 | "rx", nbufs, 1, 0); | 336 | "rx", nbufs, 1, 0); |
337 | if (error != 0) { | 337 | if (error != 0) { |
338 | ath_print(common, ATH_DBG_FATAL, | 338 | ath_err(common, |
339 | "failed to allocate rx descriptors: %d\n", | 339 | "failed to allocate rx descriptors: %d\n", |
340 | error); | 340 | error); |
341 | goto err; | 341 | goto err; |
342 | } | 342 | } |
343 | 343 | ||
@@ -358,8 +358,8 @@ int ath_rx_init(struct ath_softc *sc, int nbufs) | |||
358 | dev_kfree_skb_any(skb); | 358 | dev_kfree_skb_any(skb); |
359 | bf->bf_mpdu = NULL; | 359 | bf->bf_mpdu = NULL; |
360 | bf->bf_buf_addr = 0; | 360 | bf->bf_buf_addr = 0; |
361 | ath_print(common, ATH_DBG_FATAL, | 361 | ath_err(common, |
362 | "dma_mapping_error() on RX init\n"); | 362 | "dma_mapping_error() on RX init\n"); |
363 | error = -ENOMEM; | 363 | error = -ENOMEM; |
364 | goto err; | 364 | goto err; |
365 | } | 365 | } |
@@ -1725,8 +1725,7 @@ int ath_rx_tasklet(struct ath_softc *sc, int flush, bool hp) | |||
1725 | dev_kfree_skb_any(requeue_skb); | 1725 | dev_kfree_skb_any(requeue_skb); |
1726 | bf->bf_mpdu = NULL; | 1726 | bf->bf_mpdu = NULL; |
1727 | bf->bf_buf_addr = 0; | 1727 | bf->bf_buf_addr = 0; |
1728 | ath_print(common, ATH_DBG_FATAL, | 1728 | ath_err(common, "dma_mapping_error() on RX\n"); |
1729 | "dma_mapping_error() on RX\n"); | ||
1730 | ath_rx_send_to_mac80211(hw, sc, skb, rxs); | 1729 | ath_rx_send_to_mac80211(hw, sc, skb, rxs); |
1731 | break; | 1730 | break; |
1732 | } | 1731 | } |