summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-01-18 18:11:04 +0000
committersam <sam@FreeBSD.org>2005-01-18 18:11:04 +0000
commit4c3230e55e0801458ebd397a7be47584acdfb73d (patch)
tree6d62fdeedf7b9ffc3da213daab630efdb03b7531 /sys/dev
parent176d72c8fe14bee7a50f29cd8391cde1dceae913 (diff)
downloadFreeBSD-src-4c3230e55e0801458ebd397a7be47584acdfb73d.zip
FreeBSD-src-4c3230e55e0801458ebd397a7be47584acdfb73d.tar.gz
add paren's so we can supply a|b as a debug mask
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ath/if_ath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index 7faa3ef..74e95b5 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -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 { \
OpenPOWER on IntegriCloud