summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhid.c
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2002-07-31 13:33:55 +0000
committerjoe <joe@FreeBSD.org>2002-07-31 13:33:55 +0000
commit03e965b480798ffb5a2740bb8c871c70054ced82 (patch)
treedd95364f776cb0c0e54f022e48c5e8db7f52c692 /sys/dev/usb/uhid.c
parentdb2b5421c21286b0bc2dc446ebf11eb4912f480e (diff)
downloadFreeBSD-src-03e965b480798ffb5a2740bb8c871c70054ced82.zip
FreeBSD-src-03e965b480798ffb5a2740bb8c871c70054ced82.tar.gz
Get bored with hard coded debug level variables and introduce a debug.usb
sysctl tree for tweaking them real-time. Reviewed by: iedowse
Diffstat (limited to 'sys/dev/usb/uhid.c')
-rw-r--r--sys/dev/usb/uhid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c
index 8f03247..47ff17e 100644
--- a/sys/dev/usb/uhid.c
+++ b/sys/dev/usb/uhid.c
@@ -70,6 +70,7 @@
#include <sys/proc.h>
#include <sys/vnode.h>
#include <sys/poll.h>
+#include <sys/sysctl.h>
#include <dev/usb/usb.h>
#include <dev/usb/usbhid.h>
@@ -86,6 +87,8 @@
#define DPRINTF(x) if (uhiddebug) logprintf x
#define DPRINTFN(n,x) if (uhiddebug>(n)) logprintf x
int uhiddebug = 0;
+SYSCTL_INT(_debug_usb, OID_AUTO, uhid, CTLFLAG_RW,
+ &uhiddebug, 0, "uhid debug level");
#else
#define DPRINTF(x)
#define DPRINTFN(n,x)
OpenPOWER on IntegriCloud