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/ulpt.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/ulpt.c')
-rw-r--r-- | sys/dev/usb/ulpt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/ulpt.c b/sys/dev/usb/ulpt.c index bd04998e3044..3ac0b8f8baa4 100644 --- a/sys/dev/usb/ulpt.c +++ b/sys/dev/usb/ulpt.c @@ -72,7 +72,7 @@ #define LPTPRI (PZERO+8) #define ULPT_BSIZE 16384 -#ifdef ULPT_DEBUG +#ifdef USB_DEBUG #define DPRINTF(x) if (ulptdebug) logprintf x #define DPRINTFN(n,x) if (ulptdebug>(n)) logprintf x int ulptdebug = 0; @@ -503,7 +503,7 @@ ulptopen(dev_t dev, int flag, int mode, usb_proc_ptr p) sc->sc_flags = flags; DPRINTF(("ulptopen: flags=0x%x\n", (unsigned)flags)); -#if defined(ULPT_DEBUG) && defined(__FreeBSD__) +#if defined(USB_DEBUG) && defined(__FreeBSD__) /* Ignoring these flags might not be a good idea */ if ((flags & ~ULPT_NOPRIME) != 0) printf("ulptopen: flags ignored: %b\n", flags, |