diff options
author | joe <joe@FreeBSD.org> | 2002-07-31 13:33:55 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2002-07-31 13:33:55 +0000 |
commit | 03e965b480798ffb5a2740bb8c871c70054ced82 (patch) | |
tree | dd95364f776cb0c0e54f022e48c5e8db7f52c692 /sys/dev/usb/uvscom.c | |
parent | db2b5421c21286b0bc2dc446ebf11eb4912f480e (diff) | |
download | FreeBSD-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/uvscom.c')
-rw-r--r-- | sys/dev/usb/uvscom.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/usb/uvscom.c b/sys/dev/usb/uvscom.c index a8d38c6..4f3a067 100644 --- a/sys/dev/usb/uvscom.c +++ b/sys/dev/usb/uvscom.c @@ -57,6 +57,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/usbcdc.h> @@ -70,14 +71,8 @@ #ifdef UVSCOM_DEBUG static int uvscomdebug = 1; - -#if defined(__FreeBSD__) -#include <sys/sysctl.h> - -SYSCTL_DECL(_debug_usb); SYSCTL_INT(_debug_usb, OID_AUTO, uvscom, CTLFLAG_RW, &uvscomdebug, 0, "uvscom debug level"); -#endif #define DPRINTFN(n, x) do { \ if (uvscomdebug > (n)) \ |