summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ehci.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-07-07 16:55:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-07-07 16:55:09 +0000
commit55ead35345c7eedf5f47bbc0856cc310c6c4790c (patch)
tree9ecdbace3ae2ac376683bbb952489e613445d467 /sys/dev/usb/ehci.c
parentfc93e15f4c5dbc4b55c0a3308006137782680bee (diff)
use the do { .. } while(0) wrapper
Diffstat (limited to 'sys/dev/usb/ehci.c')
-rw-r--r--sys/dev/usb/ehci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c
index c8758a3898b..38d34f77312 100644
--- a/sys/dev/usb/ehci.c
+++ b/sys/dev/usb/ehci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ehci.c,v 1.15 2004/07/07 01:27:06 deraadt Exp $ */
+/* $OpenBSD: ehci.c,v 1.16 2004/07/07 16:55:08 deraadt Exp $ */
/* $NetBSD: ehci.c,v 1.66 2004/06/30 03:11:56 mycroft Exp $ */
/*
@@ -101,8 +101,8 @@ struct cfdriver ehci_cd = {
#endif
#ifdef EHCI_DEBUG
-#define DPRINTF(x) if (ehcidebug) printf x
-#define DPRINTFN(n,x) if (ehcidebug>(n)) printf x
+#define DPRINTF(x) do { if (ehcidebug) printf x; } while(0)
+#define DPRINTFN(n,x) do { if (ehcidebug>(n)) printf x; } while (0)
int ehcidebug = 0;
#ifndef __NetBSD__
#define bitmask_snprintf(q,f,b,l) snprintf((b), (l), "%b", (q), (f))