From owner-svn-src-head@FreeBSD.ORG Sat Jun 29 19:57:58 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 902D6D9B; Sat, 29 Jun 2013 19:57:58 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 8308C125B; Sat, 29 Jun 2013 19:57:58 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r5TJvwVg091553; Sat, 29 Jun 2013 19:57:58 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r5TJvwh3091552; Sat, 29 Jun 2013 19:57:58 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201306291957.r5TJvwh3091552@svn.freebsd.org> From: Adrian Chadd Date: Sat, 29 Jun 2013 19:57:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r252385 - head/sys/dev/ath X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jun 2013 19:57:58 -0000 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