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/uhub.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/uhub.c')
-rw-r--r-- | sys/dev/usb/uhub.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/uhub.c b/sys/dev/usb/uhub.c index ee99a1ceed7..53dcaee6b50 100644 --- a/sys/dev/usb/uhub.c +++ b/sys/dev/usb/uhub.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhub.c,v 1.23 2004/07/07 01:26:40 deraadt Exp $ */ +/* $OpenBSD: uhub.c,v 1.24 2004/07/08 22:18:44 deraadt Exp $ */ /* $NetBSD: uhub.c,v 1.64 2003/02/08 03:32:51 ichiro Exp $ */ /* $FreeBSD: src/sys/dev/usb/uhub.c,v 1.18 1999/11/17 22:33:43 n_hibma Exp $ */ @@ -66,8 +66,8 @@ #define UHUB_INTR_INTERVAL 255 /* ms */ #ifdef UHUB_DEBUG -#define DPRINTF(x) if (uhubdebug) logprintf x -#define DPRINTFN(n,x) if (uhubdebug>(n)) logprintf x +#define DPRINTF(x) do { if (uhubdebug) logprintf x; } while (0) +#define DPRINTFN(n,x) do { if (uhubdebug>(n)) logprintf x; } while (0) int uhubdebug = 0; #else #define DPRINTF(x) |