From 03e965b480798ffb5a2740bb8c871c70054ced82 Mon Sep 17 00:00:00 2001 From: joe Date: Wed, 31 Jul 2002 13:33:55 +0000 Subject: Get bored with hard coded debug level variables and introduce a debug.usb sysctl tree for tweaking them real-time. Reviewed by: iedowse --- sys/dev/usb/uhci.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/dev/usb/uhci.c') diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index 34b24dd..1115c69 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -66,6 +66,7 @@ #endif #include #include +#include #include #include @@ -102,6 +103,8 @@ uhci_softc_t *thesc; #define DPRINTFN(n,x) if (uhcidebug>(n)) printf x int uhcidebug = 0; int uhcinoloop = 0; +SYSCTL_INT(_debug_usb, OID_AUTO, uhci, CTLFLAG_RW, + &uhcidebug, 0, "uhci debug level"); #ifndef __NetBSD__ #define bitmask_snprintf(q,f,b,l) snprintf((b), (l), "%b", (q), (f)) #endif -- cgit v1.1