From dc27c4c3f7dc8171fa800613e308a8e00b0c6e14 Mon Sep 17 00:00:00 2001 From: Hakan Olsson Date: Mon, 11 Dec 2000 04:23:21 +0000 Subject: Avoid repeated 'host controlled halted' messages. (jakob@ ok) --- sys/dev/usb/uhci.c | 7 ++++--- 1 file 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); -- cgit v1.2.3