summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2012-03-16 23:24:27 +0000
committeradrian <adrian@FreeBSD.org>2012-03-16 23:24:27 +0000
commit1a24a89db96a96bbf868bb59d7b2912b57acb7a8 (patch)
treee99aaf08d545f224afbe3ca9aaaba36498fe8eb0 /sys/dev
parent36e49518fe7bd1bcbdcb73b8b11402442c37e145 (diff)
downloadFreeBSD-src-1a24a89db96a96bbf868bb59d7b2912b57acb7a8.zip
FreeBSD-src-1a24a89db96a96bbf868bb59d7b2912b57acb7a8.tar.gz
Fix a couple of debugging outputs.
* printf -> device_printf * print the buffer pointer and sequence number for any buffer that wasn't correctly tidied up before it was freed. This is to aid in some current SMP TX debugging stalls. PR: kern/166190
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ath/if_ath.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index 6f9a04d..fc01e53 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -4795,10 +4795,16 @@ ath_tx_default_comp(struct ath_softc *sc, struct ath_buf *bf, int fail)
if (bf->bf_state.bfs_dobaw)
device_printf(sc->sc_dev,
- "%s: dobaw should've been cleared!\n", __func__);
+ "%s: bf %p: seqno %d: dobaw should've been cleared!\n",
+ __func__,
+ bf,
+ SEQNO(bf->bf_state.bfs_seqno));
if (bf->bf_next != NULL)
device_printf(sc->sc_dev,
- "%s: bf_next not NULL!\n", __func__);
+ "%s: bf %p: seqno %d: bf_next not NULL!\n",
+ __func__,
+ bf,
+ SEQNO(bf->bf_state.bfs_seqno));
/*
* Do any tx complete callback. Note this must
@@ -5352,8 +5358,11 @@ ath_stoprecv(struct ath_softc *sc, int dodelay)
struct ath_buf *bf;
u_int ix;
- printf("%s: rx queue %p, link %p\n", __func__,
- (caddr_t)(uintptr_t) ath_hal_getrxbuf(ah), sc->sc_rxlink);
+ device_printf(sc->sc_dev,
+ "%s: rx queue %p, link %p\n",
+ __func__,
+ (caddr_t)(uintptr_t) ath_hal_getrxbuf(ah),
+ sc->sc_rxlink);
ix = 0;
TAILQ_FOREACH(bf, &sc->sc_rxbuf, bf_list) {
struct ath_desc *ds = bf->bf_desc;
OpenPOWER on IntegriCloud