diff options
author | iedowse <iedowse@FreeBSD.org> | 2005-03-20 23:42:54 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2005-03-20 23:42:54 +0000 |
commit | 063834825539039ff7ee11b0f5a93d906c2ef043 (patch) | |
tree | e1055c94900a5c1aac9043fe52aaa103f4405c64 /sys/dev/usb | |
parent | df09d3a7819676e84feebf7b0dfd2d7736450bd6 (diff) | |
download | FreeBSD-src-063834825539039ff7ee11b0f5a93d906c2ef043.zip FreeBSD-src-063834825539039ff7ee11b0f5a93d906c2ef043.tar.gz |
Don't display the redundant `ehci_pci_attach: companion usbX'
messages unless EHCI debugging is enabled.
Suggested by: scottl
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/ehci_pci.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/dev/usb/ehci_pci.c b/sys/dev/usb/ehci_pci.c index 16bdb87..d372f70 100644 --- a/sys/dev/usb/ehci_pci.c +++ b/sys/dev/usb/ehci_pci.c @@ -98,6 +98,13 @@ static const char *ehci_device_generic = "EHCI (generic) USB 2.0 controller"; #define PCI_EHCI_BASE_REG 0x10 +#ifdef USB_DEBUG +#define EHCI_DEBUG USB_DEBUG +#define DPRINTF(x) do { if (ehcidebug) logprintf x; } while (0) +extern int ehcidebug; +#else +#define DPRINTF(x) +#endif static int ehci_pci_attach(device_t self); static int ehci_pci_detach(device_t self); @@ -313,8 +320,8 @@ ehci_pci_attach(device_t self) if (res != 0 || buscount != 1) continue; bsc = device_get_softc(nbus[0]); - printf("ehci_pci_attach: companion %s\n", - USBDEVNAME(bsc->bdev)); + DPRINTF(("ehci_pci_attach: companion %s\n", + USBDEVNAME(bsc->bdev))); sc->sc_comps[ncomp++] = bsc; if (ncomp >= EHCI_COMPANION_MAX) break; |