diff options
author | joe <joe@FreeBSD.org> | 2002-07-31 14:34:36 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2002-07-31 14:34:36 +0000 |
commit | 9f844c45b89aea60a8007132c6198fd7a9776c4e (patch) | |
tree | fafe553431d8770eb184a810f65960276fbbcccb /sys/dev/usb/ums.c | |
parent | 7320c84bded7927b7c95a1ee65b5ec56efa7008d (diff) | |
download | FreeBSD-src-9f844c45b89aea60a8007132c6198fd7a9776c4e.zip FreeBSD-src-9f844c45b89aea60a8007132c6198fd7a9776c4e.tar.gz |
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.
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 210a9a2..d99d058 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)); |