summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhid.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2004-07-08 22:18:44 +0000
committerderaadt <deraadt@openbsd.org>2004-07-08 22:18:44 +0000
commitfcfe4ff8fe22cbd079f608b2d3d3bb1f14a6e8a5 (patch)
treee2b7a8ebde27de702483ac588bc2d255200ef378 /sys/dev/usb/uhid.c
parentmake lint happier; vincent ok (diff)
downloadwireguard-openbsd-fcfe4ff8fe22cbd079f608b2d3d3bb1f14a6e8a5.tar.xz
wireguard-openbsd-fcfe4ff8fe22cbd079f608b2d3d3bb1f14a6e8a5.zip
put "do { } while (0)" wrappers on all the debug maroc functions
Diffstat (limited to 'sys/dev/usb/uhid.c')
-rw-r--r--sys/dev/usb/uhid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c
index e168efb4d69..895866d1c58 100644
--- a/sys/dev/usb/uhid.c
+++ b/sys/dev/usb/uhid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhid.c,v 1.26 2003/06/27 16:57:14 nate Exp $ */
+/* $OpenBSD: uhid.c,v 1.27 2004/07/08 22:18:44 deraadt Exp $ */
/* $NetBSD: uhid.c,v 1.57 2003/03/11 16:44:00 augustss Exp $ */
/*
@@ -69,8 +69,8 @@
#include <dev/usb/uhidev.h>
#ifdef UHID_DEBUG
-#define DPRINTF(x) if (uhiddebug) logprintf x
-#define DPRINTFN(n,x) if (uhiddebug>(n)) logprintf x
+#define DPRINTF(x) do { if (uhiddebug) logprintf x; } while (0)
+#define DPRINTFN(n,x) do { if (uhiddebug>(n)) logprintf x; } while (0)
int uhiddebug = 0;
#else
#define DPRINTF(x)