summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uhidev.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/uhidev.c')
-rw-r--r--sys/dev/usb/uhidev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/uhidev.c b/sys/dev/usb/uhidev.c
index f53c87bdd35..4ac45aaa2ba 100644
--- a/sys/dev/usb/uhidev.c
+++ b/sys/dev/usb/uhidev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhidev.c,v 1.9 2003/07/05 16:52:04 nate Exp $ */
+/* $OpenBSD: uhidev.c,v 1.10 2004/07/08 22:18:44 deraadt Exp $ */
/* $NetBSD: uhidev.c,v 1.14 2003/03/11 16:44:00 augustss Exp $ */
/*
@@ -66,8 +66,8 @@
#include <dev/usb/ugraphire_rdesc.h>
#ifdef UHIDEV_DEBUG
-#define DPRINTF(x) if (uhidevdebug) logprintf x
-#define DPRINTFN(n,x) if (uhidevdebug>(n)) logprintf x
+#define DPRINTF(x) do { if (uhidevdebug) logprintf x; } while (0)
+#define DPRINTFN(n,x) do { if (uhidevdebug>(n)) logprintf x; } while (0)
int uhidevdebug = 0;
#else
#define DPRINTF(x)