Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Apr 2013 22:22:39 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r249958 - head/sys/dev/ath
Message-ID:  <201304262222.r3QMMdaB078262@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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