aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ath/if_ath_debug.c
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2012-08-20 05:47:07 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2012-08-20 05:47:07 +0000
commitbd68600c99c3d48346d04aa67920a63965e74bf0 (patch)
treeb5910c2f2522c9c5645ded827f9e525854eb0e4b /sys/dev/ath/if_ath_debug.c
parentd2d30ba3750117839a52b33e49a639e29e1dcf64 (diff)
downloadsrc-bd68600c99c3d48346d04aa67920a63965e74bf0.tar.gz
src-bd68600c99c3d48346d04aa67920a63965e74bf0.zip
Make sure all of the buffers are printed, rather than (n-1).
Notes
Notes: svn path=/head/; revision=239408
Diffstat (limited to 'sys/dev/ath/if_ath_debug.c')
-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 06b57da7a2a9..0c8a2d36af5b 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.