summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2005-05-13 01:06:42 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2005-05-13 01:06:42 +0000
commitffda98c137203738e7fc75c52fb14709df1f565e (patch)
treec374485564dc89a6b183167bf46abd65eca736df /sys
parent2cd1cf16050330fc5cf8a89c1714ad97d5b958d4 (diff)
do { } while (0) wrappers on debug printf macros. ok reyk@
Diffstat (limited to 'sys')
-rw-r--r--sys/net80211/ieee80211_var.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_var.h b/sys/net80211/ieee80211_var.h
index 479ea5c7513..c4c94604727 100644
--- a/sys/net80211/ieee80211_var.h
+++ b/sys/net80211/ieee80211_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_var.h,v 1.7 2005/04/21 22:47:15 reyk Exp $ */
+/* $OpenBSD: ieee80211_var.h,v 1.8 2005/05/13 01:06:41 jsg Exp $ */
/* $NetBSD: ieee80211_var.h,v 1.7 2004/05/06 03:07:10 dyoung Exp $ */
/*-
@@ -327,8 +327,8 @@ enum ieee80211_phymode ieee80211_chan2mode(struct ieee80211com *,
#ifdef IEEE80211_DEBUG
extern int ieee80211_debug;
-#define IEEE80211_DPRINTF(X) if (ieee80211_debug) printf X
-#define IEEE80211_DPRINTF2(X) if (ieee80211_debug>1) printf X
+#define IEEE80211_DPRINTF(X) do { if (ieee80211_debug) printf X; } while(0)
+#define IEEE80211_DPRINTF2(X) do { if (ieee80211_debug>1) printf X; } while(0)
#else
#define IEEE80211_DPRINTF(X)
#define IEEE80211_DPRINTF2(X)