summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ucom.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/ucom.c
parent498de9d559ef8d18745f0741a64ac726b5be698b (diff)
put "do { } while (0)" wrappers on all the debug maroc functions
Diffstat (limited to 'sys/dev/usb/ucom.c')
-rw-r--r--sys/dev/usb/ucom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/ucom.c b/sys/dev/usb/ucom.c
index 85f48b50e2f..bcb601a7720 100644
--- a/sys/dev/usb/ucom.c
+++ b/sys/dev/usb/ucom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ucom.c,v 1.20 2003/10/03 16:44:51 miod Exp $ */
+/* $OpenBSD: ucom.c,v 1.21 2004/07/08 22:18:44 deraadt Exp $ */
/* $NetBSD: ucom.c,v 1.49 2003/01/01 00:10:25 thorpej Exp $ */
/*
@@ -74,7 +74,7 @@
#if NUCOM > 0
#ifdef UCOM_DEBUG
-#define DPRINTFN(n, x) if (ucomdebug > (n)) logprintf x
+#define DPRINTFN(n, x) do { if (ucomdebug > (n)) logprintf x; } while (0)
int ucomdebug = 0;
#else
#define DPRINTFN(n, x)