summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2012-08-20 05:47:07 +0000
committeradrian <adrian@FreeBSD.org>2012-08-20 05:47:07 +0000
commit45631b6e62914a2f81df3386152bf0ae6dd14e96 (patch)
treeb5910c2f2522c9c5645ded827f9e525854eb0e4b /sys/dev/ath
parent6278c060ec3c9d44f6a2cfd3a59b9998e05e43f6 (diff)
downloadFreeBSD-src-45631b6e62914a2f81df3386152bf0ae6dd14e96.zip
FreeBSD-src-45631b6e62914a2f81df3386152bf0ae6dd14e96.tar.gz
Make sure all of the buffers are printed, rather than (n-1).
Diffstat (limited to 'sys/dev/ath')
-rw-r--r--sys/dev/ath/if_ath_debug.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/ath/if_ath_debug.c b/sys/dev/ath/if_ath_debug.c
index 06b57da..0c8a2d3 100644
--- a/sys/dev/ath/if_ath_debug.c
+++ b/sys/dev/ath/if_ath_debug.c
@@ -147,11 +147,9 @@ ath_printtxbuf_edma(struct ath_softc *sc, const struct ath_buf *first_bf,
* 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.
OpenPOWER on IntegriCloud