diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2005-04-17 07:39:45 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2005-04-17 07:39:45 +0000 |
commit | 5eb523ed954ccc3bd65f180df61c205774f07e9f (patch) | |
tree | ac108b9782a099c512db4406cdc9d2ff05d96317 /sys/dev | |
parent | 20c7666ea0ed893bee9776ffeeeb31996194b41e (diff) |
do {} while (0) wrapper for the debug printf macros
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/uftdi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/uftdi.c b/sys/dev/usb/uftdi.c index b543d1dff9e..346f0489d5b 100644 --- a/sys/dev/usb/uftdi.c +++ b/sys/dev/usb/uftdi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uftdi.c,v 1.21 2005/04/08 04:29:57 deraadt Exp $ */ +/* $OpenBSD: uftdi.c,v 1.22 2005/04/17 07:39:44 dlg Exp $ */ /* $NetBSD: uftdi.c,v 1.14 2003/02/23 04:20:07 simonb Exp $ */ /* @@ -65,8 +65,8 @@ #include <dev/usb/uftdireg.h> #ifdef UFTDI_DEBUG -#define DPRINTF(x) if (uftdidebug) printf x -#define DPRINTFN(n,x) if (uftdidebug>(n)) printf x +#define DPRINTF(x) do { if (uftdidebug) printf x; } while (0) +#define DPRINTFN(n,x) do { if (uftdidebug>(n)) printf x; } while (0) int uftdidebug = 0; #else #define DPRINTF(x) |