Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Don't repeat 'host controller halted' message. ...



details:   https://anonhg.NetBSD.org/src/rev/aaf8d2e74e31
branches:  trunk
changeset: 500681:aaf8d2e74e31
user:      augustss <augustss%NetBSD.org@localhost>
date:      Sat Dec 16 16:09:24 2000 +0000

description:
Don't repeat 'host controller halted' message.  From OpenBSD.

diffstat:

 sys/dev/usb/uhci.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r fe8494877c4e -r aaf8d2e74e31 sys/dev/usb/uhci.c
--- a/sys/dev/usb/uhci.c        Sat Dec 16 14:38:50 2000 +0000
+++ b/sys/dev/usb/uhci.c        Sat Dec 16 16:09:24 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhci.c,v 1.128 2000/11/26 11:08:59 takemura Exp $      */
+/*     $NetBSD: uhci.c,v 1.129 2000/12/16 16:09:24 augustss Exp $      */
 /*     $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $       */
 
 /*
@@ -1197,8 +1197,9 @@
        }
        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);



Home | Main Index | Thread Index | Old Index