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/usbdi.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/usbdi.c')
-rw-r--r-- | sys/dev/usb/usbdi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c index e4ac054179b..c18409b12a1 100644 --- a/sys/dev/usb/usbdi.c +++ b/sys/dev/usb/usbdi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usbdi.c,v 1.24 2004/05/04 16:59:32 grange Exp $ */ +/* $OpenBSD: usbdi.c,v 1.25 2004/07/08 22:18:45 deraadt Exp $ */ /* $NetBSD: usbdi.c,v 1.103 2002/09/27 15:37:38 provos Exp $ */ /* $FreeBSD: src/sys/dev/usb/usbdi.c,v 1.28 1999/11/17 22:33:49 n_hibma Exp $ */ @@ -69,8 +69,8 @@ #endif #ifdef USB_DEBUG -#define DPRINTF(x) if (usbdebug) logprintf x -#define DPRINTFN(n,x) if (usbdebug>(n)) logprintf x +#define DPRINTF(x) do { if (usbdebug) logprintf x; } while (0) +#define DPRINTFN(n,x) do { if (usbdebug>(n)) logprintf x; } while (0) extern int usbdebug; #else #define DPRINTF(x) |