diff options
author | 2005-03-23 15:15:11 +0000 | |
---|---|---|
committer | 2005-03-23 15:15:11 +0000 | |
commit | 35d78dc48d72315cdfba668ea3e872c9bfd19fab (patch) | |
tree | f99de9fd717bc197da94351c1e7ffa2db536fdd5 | |
parent | add new vendor/product ids. (diff) | |
download | wireguard-openbsd-35d78dc48d72315cdfba668ea3e872c9bfd19fab.tar.xz wireguard-openbsd-35d78dc48d72315cdfba668ea3e872c9bfd19fab.zip |
use URAL_DEBUG not RAL_DEBUG. use logprintf for consistency. default to
debug level 0.
-rw-r--r-- | sys/dev/usb/if_ral.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/usb/if_ral.c b/sys/dev/usb/if_ral.c index 47361afa5e5..bfac52200e2 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.18 2005/03/23 14:48:55 damien Exp $ */ +/* $OpenBSD: if_ral.c,v 1.19 2005/03/23 15:15:11 damien Exp $ */ /*- * Copyright (c) 2005 @@ -68,13 +68,13 @@ #include <dev/usb/if_ralvar.h> #ifdef USB_DEBUG -#define RAL_DEBUG +#define URAL_DEBUG #endif -#ifdef RAL_DEBUG -#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; +#ifdef URAL_DEBUG +#define DPRINTF(x) do { if (ural_debug) logprintf x; } while (0) +#define DPRINTFN(n, x) do { if (ural_debug >= (n)) logprintf x; } while (0) +int ural_debug = 0; #else #define DPRINTF(x) #define DPRINTFN(n, x) |