svn commit: r249958 - head/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Fri Apr 26 22:22:39 UTC 2013
Author: adrian
Date: Fri Apr 26 22:22:38 2013
New Revision: 249958
URL: http://svnweb.freebsd.org/changeset/base/249958
Log:
Conditionally compile this only if ATH_DEBUG is defined.
Modified:
head/sys/dev/ath/if_ath.c
Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c Fri Apr 26 21:51:17 2013 (r249957)
+++ head/sys/dev/ath/if_ath.c Fri Apr 26 22:22:38 2013 (r249958)
@@ -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
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
* 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
More information about the svn-src-all
mailing list