summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2005-03-23 15:15:12 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2005-03-23 15:15:12 +0000
commitda02d7f10cbe839e0f079554fd51e0c94b4056a7 (patch)
tree4cf3e6fe8c428086ab918a1d3a12fcc110ad914b
parenteecbeebe6afe6acef22244f0a4dd5fbaa2d1446a (diff)
use URAL_DEBUG not RAL_DEBUG. use logprintf for consistency. default to
debug level 0.
-rw-r--r--sys/dev/usb/if_ral.c12
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)