Date: Wed, 11 Jul 2012 12:10:14 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r238364 - head/sys/dev/ath Message-ID: <201207111210.q6BCAEFk042562@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 { \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207111210.q6BCAEFk042562>