summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ehci.c
diff options
context:
space:
mode:
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))