From owner-svn-src-head@FreeBSD.ORG Mon Aug 20 05:47:08 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 68654106564A; Mon, 20 Aug 2012 05:47:08 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 52CF28FC14; Mon, 20 Aug 2012 05:47:08 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q7K5l8bM090327; Mon, 20 Aug 2012 05:47:08 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q7K5l8K4090325; Mon, 20 Aug 2012 05:47:08 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201208200547.q7K5l8K4090325@svn.freebsd.org> From: Adrian Chadd Date: Mon, 20 Aug 2012 05:47:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r239408 - head/sys/dev/ath X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 20 Aug 2012 05:47:08 -0000 Author: adrian Date: Mon Aug 20 05:47:07 2012 New Revision: 239408 URL: http://svn.freebsd.org/changeset/base/239408 Log: Make sure all of the buffers are printed, rather than (n-1). Modified: head/sys/dev/ath/if_ath_debug.c Modified: head/sys/dev/ath/if_ath_debug.c ============================================================================== --- head/sys/dev/ath/if_ath_debug.c Sun Aug 19 21:31:47 2012 (r239407) +++ head/sys/dev/ath/if_ath_debug.c Mon Aug 20 05:47:07 2012 (r239408) @@ -147,11 +147,9 @@ ath_printtxbuf_edma(struct ath_softc *sc * Assume the TX map size is 4 for now and only walk * the appropriate number of segments. */ - n = bf->bf_nseg / 4; - if (n == 0) - n = 1; + n = (bf->bf_nseg / 4) + 1; - printf("Q%u[%3u]", qnum, ix); + printf("Q%u[%3u] (nseg=%d)", qnum, ix, bf->bf_nseg); while (bf != NULL) { /* * XXX For now, assume the txmap size is 4.