summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2000-12-11 04:23:21 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2000-12-11 04:23:21 +0000
commitdc27c4c3f7dc8171fa800613e308a8e00b0c6e14 (patch)
tree2a2948c267192e6b79b73c0e7a183bfb01fe7492
parent45befe5eadd2f006e65eae3ddd0d22d95fb1e9a7 (diff)
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);