From ba59181d1ce1916b4d0a67eff13e324595bfcea8 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 11 Jul 2012 12:10:13 +0000 Subject: [PATCH] Map ATH_KTR_* to 0 when ATH_DEBUG is not defined. This effectively NOPs out their use in that case. --- sys/dev/ath/if_ath_debug.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/ath/if_ath_debug.h b/sys/dev/ath/if_ath_debug.h index 9ab32f6e09b3..2e6ebf5f4c04 100644 --- a/sys/dev/ath/if_ath_debug.h +++ b/sys/dev/ath/if_ath_debug.h @@ -91,6 +91,9 @@ extern void ath_printrxbuf(struct ath_softc *, const struct ath_buf *bf, 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 { \