summaryrefslogtreecommitdiff
path: root/sys/dev/usb/udsbr.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/udsbr.c
parent498de9d559ef8d18745f0741a64ac726b5be698b (diff)
put "do { } while (0)" wrappers on all the debug maroc functions
Diffstat (limited to 'sys/dev/usb/udsbr.c')
-rw-r--r--sys/dev/usb/udsbr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/udsbr.c b/sys/dev/usb/udsbr.c
index d990c68f4fd..29e830f5d78 100644
--- a/sys/dev/usb/udsbr.c
+++ b/sys/dev/usb/udsbr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udsbr.c,v 1.6 2003/05/07 04:33:33 deraadt Exp $ */
+/* $OpenBSD: udsbr.c,v 1.7 2004/07/08 22:18:44 deraadt Exp $ */
/* $NetBSD: udsbr.c,v 1.7 2002/07/11 21:14:27 augustss Exp $ */
/*
@@ -60,8 +60,8 @@
#include <dev/usb/usbdevs.h>
#ifdef UDSBR_DEBUG
-#define DPRINTF(x) if (udsbrdebug) logprintf x
-#define DPRINTFN(n,x) if (udsbrdebug>(n)) logprintf x
+#define DPRINTF(x) do { if (udsbrdebug) logprintf x; } while (0)
+#define DPRINTFN(n,x) do { if (udsbrdebug>(n)) logprintf x; } while (0)
int udsbrdebug = 0;
#else
#define DPRINTF(x)