From 8dd015156d600a1405b15437232eb95bf71d1955 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Mon, 10 Oct 2005 08:17:47 +0000 Subject: do { } while (0) wrapper for the debug statement --- sys/dev/ic/ami.c | 4 ++-- 1 file 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 -- cgit v1.2.3