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.
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to