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/sound/usb/uaudio.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/sound/usb/uaudio.c')
-rw-r--r-- | sys/dev/sound/usb/uaudio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/sound/usb/uaudio.c b/sys/dev/sound/usb/uaudio.c index dc1f68e..c96355b 100644 --- a/sys/dev/sound/usb/uaudio.c +++ b/sys/dev/sound/usb/uaudio.c @@ -66,6 +66,7 @@ #include <sys/conf.h> #endif #include <sys/poll.h> +#include <sys/sysctl.h> #if defined(__NetBSD__) || defined(__OpenBSD__) #include <sys/audioio.h> @@ -89,6 +90,8 @@ #define DPRINTF(x) if (uaudiodebug) logprintf x #define DPRINTFN(n,x) if (uaudiodebug>(n)) logprintf x int uaudiodebug = 0; +SYSCTL_INT(_debug_usb, OID_AUTO, uaudio, CTLFLAG_RW, + &uaudiodebug, 0, "uaudio debug level"); #else #define DPRINTF(x) #define DPRINTFN(n,x) |