commit 843e51274172ba1b8ea5d8e8420b438f0da19434 Author: Jiri Slaby Date: Sat Aug 4 22:47:23 2007 +0200 some of ATH_DEBUG_ANY -> printk diff --git a/ath5k_base.c b/ath5k_base.c index 261e4aa..79ed348 100644 --- a/ath5k_base.c +++ b/ath5k_base.c @@ -264,9 +264,8 @@ static int ath_rxbuf_init(struct ath_softc *sc, struct ath_buf *bf) */ skb = dev_alloc_skb(sc->rxbufsize + sc->cachelsz - 1); if (unlikely(skb == NULL)) { - DPRINTF(sc, ATH_DEBUG_ANY, "%s: skbuff alloc of " - "size %u failed\n", __func__, - sc->rxbufsize + sc->cachelsz - 1); + printk(KERN_ERR "ath: can't alloc skbuff of size %u\n", + sc->rxbufsize + sc->cachelsz - 1); return -ENOMEM; } /* @@ -542,8 +541,8 @@ static void ath_beacon_send(struct ath_softc *sc) if (unlikely(bf->skb == NULL || sc->opmode == IEEE80211_IF_TYPE_STA || sc->opmode == IEEE80211_IF_TYPE_MNTR)) { - DPRINTF(sc, ATH_DEBUG_ANY, "%s: bf=%p bf_skb=%p\n", - __func__, bf, bf ? bf->skb : NULL); + printk(KERN_WARNING "ath: bf=%p bf_skb=%p\n", bf, + bf ? bf->skb : NULL); return; } /* @@ -579,8 +578,8 @@ static void ath_beacon_send(struct ath_softc *sc) * are still pending on the queue. */ if (unlikely(!ath5k_hw_stop_tx_dma(ah, sc->bhalq))) { - DPRINTF(sc, ATH_DEBUG_ANY, "%s: beacon queue %u didn't stop?\n", - __func__, sc->bhalq); + printk(KERN_WARNING "ath: beacon queue %u didn't stop?\n", + sc->bhalq); /* NB: the HAL still stops DMA, so proceed */ } pci_dma_sync_single_for_cpu(sc->pdev, bf->skbaddr, bf->skb->len, @@ -1570,8 +1569,8 @@ static void ath_calibrate(unsigned long data) ath_reset(sc->hw); } if (ath5k_hw_phy_calibrate(ah, sc->curchan)) - DPRINTF(sc, ATH_DEBUG_ANY, "ath: calibration of channel %u " - "failed\n", sc->curchan->chan); + printk(KERN_ERR "ath: calibration of channel %u failed\n", + sc->curchan->chan); mod_timer(&sc->calib_tim, round_jiffies(jiffies + msecs_to_jiffies(ath_calinterval * 1000)));