From 55ead35345c7eedf5f47bbc0856cc310c6c4790c Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 7 Jul 2004 16:55:09 +0000 Subject: use the do { .. } while(0) wrapper --- sys/dev/usb/ehci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/usb/ehci.c') 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)) -- cgit v1.2.3