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

Adrian Chadd adrian at freebsd.org
Wed Jul 11 22:17:08 UTC 2012


.. 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 at 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 {                           \


More information about the svn-src-all mailing list