svn commit: r242698 - head/sys/dev/ath

Adrian Chadd adrian at FreeBSD.org
Wed Nov 7 16:34:09 UTC 2012


Author: adrian
Date: Wed Nov  7 16:34:09 2012
New Revision: 242698
URL: http://svnweb.freebsd.org/changeset/base/242698

Log:
  Don't compile in my (not yet committed) ath_alq code unless ATH_DEBUG_ALQ
  is defined.
  
  This will unbreak ATH_DEBUG builds.

Modified:
  head/sys/dev/ath/if_ath.c

Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c	Wed Nov  7 15:59:24 2012	(r242697)
+++ head/sys/dev/ath/if_ath.c	Wed Nov  7 16:34:09 2012	(r242698)
@@ -117,7 +117,7 @@ __FBSDID("$FreeBSD$");
 #include <dev/ath/ath_tx99/ath_tx99.h>
 #endif
 
-#ifdef	ATH_DEBUG
+#ifdef	ATH_DEBUG_ALQ
 #include <dev/ath/if_ath_alq.h>
 #endif
 
@@ -888,7 +888,7 @@ ath_attach(u_int16_t devid, struct ath_s
 	/*
 	 * Setup the ALQ logging if required
 	 */
-#ifdef	ATH_DEBUG
+#ifdef	ATH_DEBUG_ALQ
 	if_ath_alq_init(&sc->sc_alq, device_get_nameunit(sc->sc_dev));
 #endif
 
@@ -952,7 +952,7 @@ ath_detach(struct ath_softc *sc)
 #endif
 	ath_rate_detach(sc->sc_rc);
 
-#ifdef	ATH_DEBUG
+#ifdef	ATH_DEBUG_ALQ
 	if_ath_alq_tidyup(&sc->sc_alq);
 #endif
 


More information about the svn-src-head mailing list