Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jan 2005 23:56:30 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 68502 for review
Message-ID:  <200501072356.j07NuU8i077327@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=68502

Change 68502 by sam@sam_ebb on 2005/01/07 23:55:34

	add parens so we can specify a|b for debug masks

Affected files ...

.. //depot/projects/wifi/sys/dev/ath/if_ath.c#56 edit

Differences ...

==== //depot/projects/wifi/sys/dev/ath/if_ath.c#56 (text+ko) ====

@@ -226,10 +226,10 @@
 	ATH_DEBUG_ANY		= 0xffffffff
 };
 #define	IFF_DUMPPKTS(sc, m) \
-	((sc->sc_debug & m) || \
+	((sc->sc_debug & (m)) || \
 	    (sc->sc_if.if_flags & (IFF_DEBUG|IFF_LINK2)) == (IFF_DEBUG|IFF_LINK2))
 #define	DPRINTF(sc, m, fmt, ...) do {				\
-	if (sc->sc_debug & m)					\
+	if (sc->sc_debug & (m))					\
 		printf(fmt, __VA_ARGS__);			\
 } while (0)
 #define	KEYPRINTF(sc, ix, hk, mac) do {				\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501072356.j07NuU8i077327>