diff options
author | Josef Karthauser <joe@FreeBSD.org> | 2002-07-31 14:34:36 +0000 |
---|---|---|
committer | Josef Karthauser <joe@FreeBSD.org> | 2002-07-31 14:34:36 +0000 |
commit | 528d1a7fbc2d6f7ab5fc29c7c2dd6c03e76eaba6 (patch) | |
tree | fafe553431d8770eb184a810f65960276fbbcccb /sys/dev/usb/ums.c | |
parent | 6ada40b0096875267625ec96a56a591ff1f041de (diff) | |
download | src-528d1a7fbc2d6f7ab5fc29c7c2dd6c03e76eaba6.tar.gz src-528d1a7fbc2d6f7ab5fc29c7c2dd6c03e76eaba6.zip |
Replace the FOO_DEBUG definitions with USB_DEBUG, and switch the
debugging levels to off by default. Now that debug levels can be
tweaked by sysctl we don't need to go through hoops to get the
different usb parts to produce debug data.
Notes
Notes:
svn path=/head/; revision=101060
Diffstat (limited to 'sys/dev/usb/ums.c')
-rw-r--r-- | sys/dev/usb/ums.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c index 210a9a238ebc..d99d05817555 100644 --- a/sys/dev/usb/ums.c +++ b/sys/dev/usb/ums.c @@ -71,10 +71,10 @@ #include <sys/mouse.h> -#ifdef UMS_DEBUG +#ifdef USB_DEBUG #define DPRINTF(x) if (umsdebug) logprintf x #define DPRINTFN(n,x) if (umsdebug>(n)) logprintf x -int umsdebug = 1; +int umsdebug = 0; SYSCTL_INT(_debug_usb, OID_AUTO, ums, CTLFLAG_RW, &umsdebug, 0, "ums debug level"); #else @@ -310,7 +310,7 @@ USB_ATTACH(ums) sc->sc_disconnected = 0; free(desc, M_TEMP); -#ifdef UMS_DEBUG +#ifdef USB_DEBUG DPRINTF(("ums_attach: sc=%p\n", sc)); DPRINTF(("ums_attach: X\t%d/%d\n", sc->sc_loc_x.pos, sc->sc_loc_x.size)); |