summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uchcom.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2007-09-08 04:05:37 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2007-09-08 04:05:37 +0000
commite2986bbd5956027bf17f61afbda86690a755c7cc (patch)
tree873c2dc4ac31ec6ea59c7d7b6979194aa8d93ce0 /sys/dev/usb/uchcom.c
parent055b2f7fc838130f27e3537a46aec897d7fc2249 (diff)
Wrap DPRINTFN() macro up in do { } while(0).
Diffstat (limited to 'sys/dev/usb/uchcom.c')
-rw-r--r--sys/dev/usb/uchcom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uchcom.c b/sys/dev/usb/uchcom.c
index 940c02af824..89834ec0141 100644
--- a/sys/dev/usb/uchcom.c
+++ b/sys/dev/usb/uchcom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uchcom.c,v 1.1 2007/09/08 02:15:52 jsg Exp $ */
+/* $OpenBSD: uchcom.c,v 1.2 2007/09/08 04:05:36 jsg Exp $ */
/* $NetBSD: uchcom.c,v 1.1 2007/09/03 17:57:37 tshiozak Exp $ */
/*
@@ -56,7 +56,7 @@
#include <dev/usb/ucomvar.h>
#ifdef UCHCOM_DEBUG
-#define DPRINTFN(n, x) if (uchcomdebug > (n)) logprintf x
+#define DPRINTFN(n, x) do { if (uchcomdebug > (n)) printf x; } while (0)
int uchcomdebug = 0;
#else
#define DPRINTFN(n, x)