add paren's so we can supply a|b as a debug mask

This commit is contained in:
Sam Leffler 2005-01-18 18:11:04 +00:00
parent 0b19ce1eb7
commit 0a1b94c44c

View File

@ -219,10 +219,10 @@ enum {
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 { \