summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2013-04-26 22:22:38 +0000
committeradrian <adrian@FreeBSD.org>2013-04-26 22:22:38 +0000
commitfcb65473b4813afab4b5db16660a4b729907a78d (patch)
treed9064f7e5816000470ec039e8aad7be93ff96194 /sys/dev
parent0bfb07dfdec69a283017fdc900ea5de957dec599 (diff)
downloadFreeBSD-src-fcb65473b4813afab4b5db16660a4b729907a78d.zip
FreeBSD-src-fcb65473b4813afab4b5db16660a4b729907a78d.tar.gz
Conditionally compile this only if ATH_DEBUG is defined.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ath/if_ath.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index aee230b..9a33ede 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -4500,6 +4500,7 @@ ath_stoptxdma(struct ath_softc *sc)
return 1;
}
+#ifdef ATH_DEBUG
static void
ath_tx_dump(struct ath_softc *sc, struct ath_txq *txq)
{
@@ -4523,6 +4524,7 @@ ath_tx_dump(struct ath_softc *sc, struct ath_txq *txq)
device_printf(sc->sc_dev, "%s: Q%d: end\n",
__func__, txq->axq_qnum);
}
+#endif /* ATH_DEBUG */
/*
* Drain the transmit queues and reclaim resources.
@@ -4547,8 +4549,10 @@ ath_legacy_tx_drain(struct ath_softc *sc, ATH_RESET_TYPE reset_type)
* here, whether or not the reset is a full one or not?
*/
if (ATH_TXQ_SETUP(sc, i)) {
+#ifdef ATH_DEBUG
if (sc->sc_debug & ATH_DEBUG_RESET)
ath_tx_dump(sc, &sc->sc_txq[i]);
+#endif /* ATH_DEBUG */
if (reset_type == ATH_RESET_NOLOSS)
ath_tx_processq(sc, &sc->sc_txq[i], 0);
else
OpenPOWER on IntegriCloud