summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2005-10-10 08:17:47 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2005-10-10 08:17:47 +0000
commit8dd015156d600a1405b15437232eb95bf71d1955 (patch)
tree2f3067e37ba4a76ab175badad4f2a35395551278 /sys/dev/ic
parent1964522e91f6aaced069060a1dd8acad26e761ce (diff)
do { } while (0) wrapper for the debug statement
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/ami.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c
index 468f2070a1d..ee87d0feab2 100644
--- a/sys/dev/ic/ami.c
+++ b/sys/dev/ic/ami.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ami.c,v 1.92 2005/10/03 21:11:14 krw Exp $ */
+/* $OpenBSD: ami.c,v 1.93 2005/10/10 08:17:46 dlg Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -69,7 +69,7 @@
#include "bio.h"
#ifdef AMI_DEBUG
-#define AMI_DPRINTF(m,a) if (ami_debug & (m)) printf a
+#define AMI_DPRINTF(m,a) do { if (ami_debug & (m)) printf a; } while (0)
#define AMI_D_CMD 0x0001
#define AMI_D_INTR 0x0002
#define AMI_D_MISC 0x0004