diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-07-07 01:27:07 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-07-07 01:27:07 +0000 |
commit | 68d4d8528317f1c0c8a5d821fba5a47faf773aa2 (patch) | |
tree | 093c4797669af2db7ac3acc1b4f0b3a22b376e24 | |
parent | 8ea8bfdca6b6557ba4af55373a5c679cd1055e66 (diff) |
a bit more silence during bus handovers; loki@animata.net
-rw-r--r-- | sys/dev/usb/ehci.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c index e326af870db..c8758a3898b 100644 --- a/sys/dev/usb/ehci.c +++ b/sys/dev/usb/ehci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ehci.c,v 1.14 2004/07/07 00:58:42 deraadt Exp $ */ +/* $OpenBSD: ehci.c,v 1.15 2004/07/07 01:27:06 deraadt Exp $ */ /* $NetBSD: ehci.c,v 1.66 2004/06/30 03:11:56 mycroft Exp $ */ /* @@ -1909,21 +1909,23 @@ ehci_disown(ehci_softc_t *sc, int index, int lowspeed) int port; u_int32_t v; +#if 0 DPRINTF(("ehci_disown: index=%d lowspeed=%d\n", index, lowspeed)); -#ifdef DIAGNOSTIC +#endif +#ifdef EHCI_DEBUG if (sc->sc_npcomp != 0) { int i = (index-1) / sc->sc_npcomp; if (i >= sc->sc_ncomp) - printf("%s: strange port\n", - USBDEVNAME(sc->sc_bus.bdev)); + DPRINTF(("%s: strange port\n", + USBDEVNAME(sc->sc_bus.bdev))); else - printf("%s: handing over %s speed device on " + DPRINTF(("%s: handing over %s speed device on " "port %d to %s\n", USBDEVNAME(sc->sc_bus.bdev), lowspeed ? "low" : "full", - index, USBDEVNAME(sc->sc_comps[i]->bdev)); + index, USBDEVNAME(sc->sc_comps[i]->bdev))); } else { - printf("%s: npcomp == 0\n", USBDEVNAME(sc->sc_bus.bdev)); + DPRINTF(("%s: npcomp == 0\n", USBDEVNAME(sc->sc_bus.bdev))); } #endif port = EHCI_PORTSC(index); |