Map ATH_KTR_* to 0 when ATH_DEBUG is not defined. This effectively NOPs

out their use in that case.
This commit is contained in:
John Baldwin 2012-07-11 12:10:13 +00:00
parent f4bd5f21f0
commit ba59181d1c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238364

View file

@ -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 { \