diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2005-03-23 12:41:48 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2005-03-23 12:41:48 +0000 |
commit | 0481a6c12fc923358f6ffff2a9dd26091ddeddb0 (patch) | |
tree | 61f46710a0473e555b5494f7e29e1fb90d995cfe /sys/dev/usb/if_ral.c | |
parent | 0f4c89f75ee6b53dcb06af62ea284de46fd15323 (diff) |
USB_DEBUG implies URAL_DEBUG.
ok damien@
Diffstat (limited to 'sys/dev/usb/if_ral.c')
-rw-r--r-- | sys/dev/usb/if_ral.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/usb/if_ral.c b/sys/dev/usb/if_ral.c index 6151880abe8..2a8ccc3471e 100644 --- a/sys/dev/usb/if_ral.c +++ b/sys/dev/usb/if_ral.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ral.c,v 1.14 2005/03/19 10:18:49 damien Exp $ */ +/* $OpenBSD: if_ral.c,v 1.15 2005/03/23 12:41:47 dlg Exp $ */ /*- * Copyright (c) 2005 @@ -67,9 +67,13 @@ #include <dev/usb/if_ralreg.h> #include <dev/usb/if_ralvar.h> +#ifdef USB_DEBUG +#define RAL_DEBUG +#endif + #ifdef RAL_DEBUG -#define DPRINTF(x) if (ural_debug > 0) printf x -#define DPRINTFN(n, x) if (ural_debug >= (n)) printf x +#define DPRINTF(x) do { if (ural_debug) printf x; } while (0) +#define DPRINTFN(n, x) do { if (ural_debug >= (n)) printf x; } while (0) int ural_debug = 14; #else #define DPRINTF(x) |