Date: Wed, 11 Jul 2012 15:17:07 -0700 From: Adrian Chadd <adrian@freebsd.org> To: John Baldwin <jhb@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r238364 - head/sys/dev/ath Message-ID: <CAJ-Vmom8=Z15wimx-E9dUrE6ov2S8Ej3-KCb7kiaHgdEThGa4g@mail.gmail.com> In-Reply-To: <201207111210.q6BCAEFk042562@svn.freebsd.org> References: <201207111210.q6BCAEFk042562@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
.. hm, interesting. I didn't catch this. Maybe I should whack the ATH_KTR_* things outside of the #ifdef ATH_DEBUG .. ? ADrian On 11 July 2012 05:10, John Baldwin <jhb@freebsd.org> wrote: > 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?CAJ-Vmom8=Z15wimx-E9dUrE6ov2S8Ej3-KCb7kiaHgdEThGa4g>