summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorho <ho@openbsd.org>2000-12-11 04:23:20 +0000
committerho <ho@openbsd.org>2000-12-11 04:23:20 +0000
commite86d4352df2e3d10ac5d93a15419586ed6554525 (patch)
tree468399fa8efd59fc28e1c1c89c2a05c77d90b8ad
parentanother piece of GPL software gone. (diff)
downloadwireguard-openbsd-e86d4352df2e3d10ac5d93a15419586ed6554525.tar.xz
wireguard-openbsd-e86d4352df2e3d10ac5d93a15419586ed6554525.zip
Avoid repeated 'host controlled halted' messages. (jakob@ ok)
-rw-r--r--sys/dev/usb/uhci.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c
index 12208439d10..faa0dfec7fd 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhci.c,v 1.16 2000/11/11 16:23:30 drahn Exp $ */
+/* $OpenBSD: uhci.c,v 1.17 2000/12/11 04:23:20 ho Exp $ */
/* $NetBSD: uhci.c,v 1.125 2000/09/23 21:00:10 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
@@ -1176,8 +1176,9 @@ uhci_intr(void *arg)
}
if (status & UHCI_STS_HCH) {
/* no acknowledge needed */
- printf("%s: host controller halted\n",
- USBDEVNAME(sc->sc_bus.bdev));
+ if (!sc->sc_dying)
+ printf("%s: host controller halted\n",
+ USBDEVNAME(sc->sc_bus.bdev));
sc->sc_dying = 1;
#ifdef UHCI_DEBUG
uhci_dump_all(sc);