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/ukbd.c | |
parent | 498de9d559ef8d18745f0741a64ac726b5be698b (diff) |
put "do { } while (0)" wrappers on all the debug maroc functions
Diffstat (limited to 'sys/dev/usb/ukbd.c')
-rw-r--r-- | sys/dev/usb/ukbd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/ukbd.c b/sys/dev/usb/ukbd.c index e2d292b4130..d7e6a2031f9 100644 --- a/sys/dev/usb/ukbd.c +++ b/sys/dev/usb/ukbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ukbd.c,v 1.19 2003/07/05 16:56:45 nate Exp $ */ +/* $OpenBSD: ukbd.c,v 1.20 2004/07/08 22:18:44 deraadt Exp $ */ /* $NetBSD: ukbd.c,v 1.85 2003/03/11 16:44:00 augustss Exp $ */ /* @@ -81,8 +81,8 @@ #endif #ifdef UKBD_DEBUG -#define DPRINTF(x) if (ukbddebug) logprintf x -#define DPRINTFN(n,x) if (ukbddebug>(n)) logprintf x +#define DPRINTF(x) do { if (ukbddebug) logprintf x; } while (0) +#define DPRINTFN(n,x) do { if (ukbddebug>(n)) logprintf x; } while (0) int ukbddebug = 0; #else #define DPRINTF(x) |