summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_subr.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-07-08 22:18:46 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-07-08 22:18:46 +0000
commit7a566780863e826bc4a701248f83ab190ef0cf5a (patch)
tree5012110e1023aece0251bdd481becd6814264ed8 /sys/dev/usb/usb_subr.c
parent498de9d559ef8d18745f0741a64ac726b5be698b (diff)
put "do { } while (0)" wrappers on all the debug maroc functions
Diffstat (limited to 'sys/dev/usb/usb_subr.c')
-rw-r--r--sys/dev/usb/usb_subr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/usb_subr.c b/sys/dev/usb/usb_subr.c
index 8d9f40db20b..73b2ad0d103 100644
--- a/sys/dev/usb/usb_subr.c
+++ b/sys/dev/usb/usb_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usb_subr.c,v 1.26 2003/07/08 13:19:09 nate Exp $ */
+/* $OpenBSD: usb_subr.c,v 1.27 2004/07/08 22:18:45 deraadt Exp $ */
/* $NetBSD: usb_subr.c,v 1.103 2003/01/10 11:19:13 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb_subr.c,v 1.18 1999/11/17 22:33:47 n_hibma Exp $ */
@@ -68,8 +68,8 @@
#endif
#ifdef USB_DEBUG
-#define DPRINTF(x) if (usbdebug) logprintf x
-#define DPRINTFN(n,x) if (usbdebug>(n)) logprintf x
+#define DPRINTF(x) do { if (usbdebug) logprintf x; } while (0)
+#define DPRINTFN(n,x) do { if (usbdebug>(n)) logprintf x; } while (0)
extern int usbdebug;
#else
#define DPRINTF(x)