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

John Baldwin jhb at FreeBSD.org
Wed Jul 11 12:10:14 UTC 2012


Author: jhb
Date: Wed Jul 11 12:10:13 2012
New Revision: 238364
URL: http://svn.freebsd.org/changeset/base/238364

Log:
  Map ATH_KTR_* to 0 when ATH_DEBUG is not defined.  This effectively NOPs
  out their use in that case.

Modified:
  head/sys/dev/ath/if_ath_debug.h

Modified: head/sys/dev/ath/if_ath_debug.h
==============================================================================
--- head/sys/dev/ath/if_ath_debug.h	Wed Jul 11 08:24:30 2012	(r238363)
+++ head/sys/dev/ath/if_ath_debug.h	Wed Jul 11 12:10:13 2012	(r238364)
@@ -91,6 +91,9 @@ extern	void ath_printrxbuf(struct ath_so
 extern	void ath_printtxbuf(struct ath_softc *, const struct ath_buf *bf,
 	u_int qnum, u_int ix, int done);
 #else	/* ATH_DEBUG */
+#define	ATH_KTR_INTR	0
+#define	ATH_KTR_ERR	0
+
 #define	IFF_DUMPPKTS(sc, m) \
 	((sc->sc_ifp->if_flags & (IFF_DEBUG|IFF_LINK2)) == (IFF_DEBUG|IFF_LINK2))
 #define	DPRINTF(sc, m, fmt, ...) do {				\


More information about the svn-src-all mailing list