summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2002-07-31 13:58:15 +0000
committerjoe <joe@FreeBSD.org>2002-07-31 13:58:15 +0000
commit9c81c72ca1dcb568487cbb2db2af17d2336c8b2f (patch)
treefff919e3f919f33c960da984f9f18b312aeed207 /sys/dev
parentb678abefa29c797156386ae66b6380502761c100 (diff)
downloadFreeBSD-src-9c81c72ca1dcb568487cbb2db2af17d2336c8b2f.zip
FreeBSD-src-9c81c72ca1dcb568487cbb2db2af17d2336c8b2f.tar.gz
Add a sysctl (debug.usb.uhub) for tweaking the uhub debug levels.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/uhub.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/usb/uhub.c b/sys/dev/usb/uhub.c
index 8be236b..7b15160 100644
--- a/sys/dev/usb/uhub.c
+++ b/sys/dev/usb/uhub.c
@@ -67,7 +67,9 @@
#ifdef UHUB_DEBUG
#define DPRINTF(x) if (uhubdebug) logprintf x
#define DPRINTFN(n,x) if (uhubdebug>(n)) logprintf x
-int uhubdebug;
+int uhubdebug = 0;
+SYSCTL_INT(_debug_usb, OID_AUTO, uhub, CTLFLAG_RW,
+ &uhubdebug, 0, "uhub debug level");
#else
#define DPRINTF(x)
#define DPRINTFN(n,x)
OpenPOWER on IntegriCloud