Don't display the redundant `ehci_pci_attach: companion usbX'
messages unless EHCI debugging is enabled. Suggested by: scottl
This commit is contained in:
parent
d8e0b9e1c0
commit
0b07d58eb3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user