From 25245548325110c1c173e72d7f564ac1af3af761 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Sat, 29 Jun 2013 19:57:57 +0000 Subject: [PATCH] Don't log anything if npkts == 0. This occurs at RX DMA start, even though the RX FIFO has plenty of space. I'll go figure out why, but this shouldn't cause people to be spammed by these messages. --- sys/dev/ath/if_ath_rx_edma.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/dev/ath/if_ath_rx_edma.c b/sys/dev/ath/if_ath_rx_edma.c index abfb57deed89..2be8627ace22 100644 --- a/sys/dev/ath/if_ath_rx_edma.c +++ b/sys/dev/ath/if_ath_rx_edma.c @@ -424,9 +424,10 @@ ath_edma_recv_proc_queue(struct ath_softc *sc, HAL_RX_QUEUE qtype, if (dosched && sc->sc_kickpcu) { ATH_KTR(sc, ATH_KTR_ERROR, 0, "ath_edma_recv_proc_queue(): kickpcu"); - device_printf(sc->sc_dev, - "%s: handled npkts %d\n", - __func__, npkts); + if (npkts > 0) + device_printf(sc->sc_dev, + "%s: handled npkts %d\n", + __func__, npkts); /* * XXX TODO: what should occur here? Just re-poke and