svn commit: r252385 - head/sys/dev/ath

Adrian Chadd adrian at FreeBSD.org
Sat Jun 29 19:57:58 UTC 2013


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


More information about the svn-src-all mailing list