summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-07-08 22:20:05 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-07-08 22:20:05 +0000
commit59dab498838589ddba099340ad02c7f6b7a5bb91 (patch)
tree4fa379f97530415680d07d7b4e7a10ff638684d3
parent7a566780863e826bc4a701248f83ab190ef0cf5a (diff)
put "do { } while (0)" wrappers on all the debug maroc functions
-rw-r--r--sys/dev/usb/umassvar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/umassvar.h b/sys/dev/usb/umassvar.h
index 8c023ffdba2..b824f131eaf 100644
--- a/sys/dev/usb/umassvar.h
+++ b/sys/dev/usb/umassvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: umassvar.h,v 1.4 2004/02/21 00:47:42 krw Exp $ */
+/* $OpenBSD: umassvar.h,v 1.5 2004/07/08 22:20:04 deraadt Exp $ */
/* $NetBSD: umassvar.h,v 1.19 2003/02/22 05:18:50 tsutsui Exp $ */
/*-
* Copyright (c) 1999 MAEKAWA Masahide <bishop@rr.iij4u.or.jp>,
@@ -31,7 +31,7 @@
#ifdef UMASS_DEBUG
#define DIF(m, x) if (umassdebug & (m)) do { x ; } while (0)
-#define DPRINTF(m, x) if (umassdebug & (m)) logprintf x
+#define DPRINTF(m, x) do { if (umassdebug & (m)) logprintf x; } while (0)
#define UDMASS_UPPER 0x00008000 /* upper layer */
#define UDMASS_GEN 0x00010000 /* general */
#define UDMASS_SCSI 0x00020000 /* scsi */