Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Sep 2011 03:25:02 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r225546 - user/adrian/if_ath_tx/sys/dev/ath
Message-ID:  <201109140325.p8E3P2NU008710@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Wed Sep 14 03:25:02 2011
New Revision: 225546
URL: http://svn.freebsd.org/changeset/base/225546

Log:
  Add further ath_buf debugging, relevant for TX buffers.

Modified:
  user/adrian/if_ath_tx/sys/dev/ath/if_ath_debug.c

Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath_debug.c
==============================================================================
--- user/adrian/if_ath_tx/sys/dev/ath/if_ath_debug.c	Wed Sep 14 03:18:00 2011	(r225545)
+++ user/adrian/if_ath_tx/sys/dev/ath/if_ath_debug.c	Wed Sep 14 03:25:02 2011	(r225546)
@@ -136,10 +136,16 @@ ath_printtxbuf(struct ath_softc *sc, con
 	while (bf != NULL) {
 		for (i = 0, ds = bf->bf_desc; i < bf->bf_nseg; i++, ds++) {
 			printf(" (DS.V:%p DS.P:%p) L:%08x D:%08x F:%04x%s\n"
+			       "        TXF: %04x Seq: %d swtry: %d ADDBAW?: %d DOBAW?: %d\n"
 			       "        %08x %08x %08x %08x %08x %08x\n",
 			    ds, (const struct ath_desc *)bf->bf_daddr + i,
 			    ds->ds_link, ds->ds_data, bf->bf_txflags,
 			    !done ? "" : (ts->ts_status == 0) ? " *" : " !",
+			    bf->bf_state.bfs_flags,
+			    bf->bf_state.bfs_seqno,
+			    bf->bf_state.bfs_retries,
+			    bf->bf_state.bfs_addedbaw,
+			    bf->bf_state.bfs_dobaw,
 			    ds->ds_ctl0, ds->ds_ctl1,
 			    ds->ds_hw[0], ds->ds_hw[1], ds->ds_hw[2], ds->ds_hw[3]);
 			if (ah->ah_magic == 0x20065416) {
@@ -153,6 +159,7 @@ ath_printtxbuf(struct ath_softc *sc, con
 				    ds->ds_hw[18], ds->ds_hw[19]);
 			}
 		}
+		printf("  [end]\n");
 		bf = bf->bf_next;
 	}
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109140325.p8E3P2NU008710>