Date: Sat, 29 Jun 2013 19:57:57 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r252385 - head/sys/dev/ath Message-ID: <201306291957.r5TJvwh3091552@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Sat Jun 29 19:57:57 2013 New Revision: 252385 URL: http://svnweb.freebsd.org/changeset/base/252385 Log: 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. Modified: head/sys/dev/ath/if_ath_rx_edma.c Modified: head/sys/dev/ath/if_ath_rx_edma.c ============================================================================== --- head/sys/dev/ath/if_ath_rx_edma.c Sat Jun 29 18:07:32 2013 (r252384) +++ head/sys/dev/ath/if_ath_rx_edma.c Sat Jun 29 19:57:57 2013 (r252385) @@ -424,9 +424,10 @@ ath_edma_recv_proc_queue(struct ath_soft 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306291957.r5TJvwh3091552>