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/ucom.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sys/dev/usb/ucom.c') diff --git a/sys/dev/usb/ucom.c b/sys/dev/usb/ucom.c index 7da8e3b..b88d1da 100644 --- a/sys/dev/usb/ucom.c +++ b/sys/dev/usb/ucom.c @@ -88,6 +88,7 @@ #include #include #include +#include #include #include @@ -100,14 +101,9 @@ #include #ifdef UCOM_DEBUG -#include - static int ucomdebug = 1; - -SYSCTL_NODE(_debug, OID_AUTO, usb, CTLFLAG_RW, 0, "USB debugging"); SYSCTL_INT(_debug_usb, OID_AUTO, ucom, CTLFLAG_RW, &ucomdebug, 0, "ucom debug level"); - #define DPRINTF(x) do { \ if (ucomdebug) \ logprintf x; \ -- cgit v1.1