summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ums.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/ums.c
parent498de9d559ef8d18745f0741a64ac726b5be698b (diff)
put "do { } while (0)" wrappers on all the debug maroc functions
Diffstat (limited to 'sys/dev/usb/ums.c')
-rw-r--r--sys/dev/usb/ums.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c
index bf78fb9f83c..25480133aa0 100644
--- a/sys/dev/usb/ums.c
+++ b/sys/dev/usb/ums.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ums.c,v 1.13 2003/05/19 00:37:19 nate Exp $ */
+/* $OpenBSD: ums.c,v 1.14 2004/07/08 22:18:44 deraadt Exp $ */
/* $NetBSD: ums.c,v 1.60 2003/03/11 16:44:00 augustss Exp $ */
/*
@@ -69,8 +69,8 @@
#include <dev/wscons/wsmousevar.h>
#ifdef USB_DEBUG
-#define DPRINTF(x) if (umsdebug) logprintf x
-#define DPRINTFN(n,x) if (umsdebug>(n)) logprintf x
+#define DPRINTF(x) do { if (umsdebug) logprintf x; } while (0)
+#define DPRINTFN(n,x) do { if (umsdebug>(n)) logprintf x; } while (0)
int umsdebug = 0;
#else
#define DPRINTF(x)