summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2002-12-19 16:33:00 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2002-12-19 16:33:00 +0000
commit398a6b97facf2f7106e658682d2d30aa6bd6220e (patch)
tree2792cdb8719ee1d7993dfd39b2216d4baaccdae3 /sys/dev/ic
parent86103d0701c7eeb6e743f4cd8ba63f6baa29ba7c (diff)
Protect WDCDEBUG_PRINT macro with do {} while (0)
ok costa@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/wdc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/ic/wdc.c b/sys/dev/ic/wdc.c
index e5576aacda7..4e69720dfad 100644
--- a/sys/dev/ic/wdc.c
+++ b/sys/dev/ic/wdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wdc.c,v 1.55 2002/12/12 10:26:26 grange Exp $ */
+/* $OpenBSD: wdc.c,v 1.56 2002/12/19 16:32:59 grange Exp $ */
/* $NetBSD: wdc.c,v 1.68 1999/06/23 19:00:17 bouyer Exp $ */
@@ -119,7 +119,10 @@ void wdc_kill_pending(struct channel_softc *);
#ifdef WDCDEBUG
int wdcdebug_mask = 0;
int wdc_nxfer = 0;
-#define WDCDEBUG_PRINT(args, level) if (wdcdebug_mask & (level)) printf args
+#define WDCDEBUG_PRINT(args, level) do { \
+ if ((wdcdebug_mask & (level)) != 0) \
+ printf args; \
+} while (0)
#else
#define WDCDEBUG_PRINT(args, level)
#endif