diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-07-08 22:18:46 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-07-08 22:18:46 +0000 |
commit | 7a566780863e826bc4a701248f83ab190ef0cf5a (patch) | |
tree | 5012110e1023aece0251bdd481becd6814264ed8 /sys/dev/usb/uscanner.c | |
parent | 498de9d559ef8d18745f0741a64ac726b5be698b (diff) |
put "do { } while (0)" wrappers on all the debug maroc functions
Diffstat (limited to 'sys/dev/usb/uscanner.c')
-rw-r--r-- | sys/dev/usb/uscanner.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/uscanner.c b/sys/dev/usb/uscanner.c index 193cb61e12e..6e0f6e179a8 100644 --- a/sys/dev/usb/uscanner.c +++ b/sys/dev/usb/uscanner.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uscanner.c,v 1.16 2003/06/27 16:57:14 nate Exp $ */ +/* $OpenBSD: uscanner.c,v 1.17 2004/07/08 22:18:45 deraadt Exp $ */ /* $NetBSD: uscanner.c,v 1.40 2003/01/27 00:32:44 wiz Exp $ */ /* @@ -72,8 +72,8 @@ #include <dev/usb/usbdevs.h> #ifdef USCANNER_DEBUG -#define DPRINTF(x) if (uscannerdebug) logprintf x -#define DPRINTFN(n,x) if (uscannerdebug>(n)) logprintf x +#define DPRINTF(x) do { if (uscannerdebug) logprintf x; } while (0) +#define DPRINTFN(n,x) do { if (uscannerdebug>(n)) logprintf x; } while (0) int uscannerdebug = 0; #else #define DPRINTF(x) |