diff options
| author | 2004-07-08 22:18:44 +0000 | |
|---|---|---|
| committer | 2004-07-08 22:18:44 +0000 | |
| commit | fcfe4ff8fe22cbd079f608b2d3d3bb1f14a6e8a5 (patch) | |
| tree | e2b7a8ebde27de702483ac588bc2d255200ef378 /sys/dev/usb/uhidev.c | |
| parent | make lint happier; vincent ok (diff) | |
| download | wireguard-openbsd-fcfe4ff8fe22cbd079f608b2d3d3bb1f14a6e8a5.tar.xz wireguard-openbsd-fcfe4ff8fe22cbd079f608b2d3d3bb1f14a6e8a5.zip | |
put "do { } while (0)" wrappers on all the debug maroc functions
Diffstat (limited to 'sys/dev/usb/uhidev.c')
| -rw-r--r-- | sys/dev/usb/uhidev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/uhidev.c b/sys/dev/usb/uhidev.c index f53c87bdd35..4ac45aaa2ba 100644 --- a/sys/dev/usb/uhidev.c +++ b/sys/dev/usb/uhidev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhidev.c,v 1.9 2003/07/05 16:52:04 nate Exp $ */ +/* $OpenBSD: uhidev.c,v 1.10 2004/07/08 22:18:44 deraadt Exp $ */ /* $NetBSD: uhidev.c,v 1.14 2003/03/11 16:44:00 augustss Exp $ */ /* @@ -66,8 +66,8 @@ #include <dev/usb/ugraphire_rdesc.h> #ifdef UHIDEV_DEBUG -#define DPRINTF(x) if (uhidevdebug) logprintf x -#define DPRINTFN(n,x) if (uhidevdebug>(n)) logprintf x +#define DPRINTF(x) do { if (uhidevdebug) logprintf x; } while (0) +#define DPRINTFN(n,x) do { if (uhidevdebug>(n)) logprintf x; } while (0) int uhidevdebug = 0; #else #define DPRINTF(x) |
