Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb move DIAGNOSTIC-printf up one block to make it r...



details:   https://anonhg.NetBSD.org/src/rev/886c293db5a8
branches:  trunk
changeset: 515697:886c293db5a8
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Oct 02 17:59:38 2001 +0000

description:
move DIAGNOSTIC-printf up one block to make it reachable

noted by Christophe Kalt in private email

diffstat:

 sys/dev/usb/uhci.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (33 lines):

diff -r e719486950ae -r 886c293db5a8 sys/dev/usb/uhci.c
--- a/sys/dev/usb/uhci.c        Tue Oct 02 14:45:43 2001 +0000
+++ b/sys/dev/usb/uhci.c        Tue Oct 02 17:59:38 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhci.c,v 1.137 2001/08/06 15:15:08 augustss Exp $      */
+/*     $NetBSD: uhci.c,v 1.138 2001/10/02 17:59:38 pooka Exp $ */
 /*     $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $       */
 
 /*
@@ -1164,6 +1164,11 @@
        if (status == 0)        /* The interrupt was not for us. */
                return (0);
 
+#if defined(DIAGNOSTIC) && defined(__NetBSD__)
+       if (sc->sc_suspend != PWR_RESUME)
+               printf("uhci_intr: suspended sts=0x%x\n", status);
+#endif
+
        if (sc->sc_suspend != PWR_RESUME) {
                printf("%s: interrupt while not operating ignored\n",
                       USBDEVNAME(sc->sc_bus.bdev));
@@ -1171,11 +1176,6 @@
                return (0);
        }
 
-#if defined(DIAGNOSTIC) && defined(__NetBSD__)
-       if (sc->sc_suspend != PWR_RESUME)
-               printf("uhci_intr: suspended sts=0x%x\n", status);
-#endif
-
        ack = 0;
        if (status & UHCI_STS_USBINT)
                ack |= UHCI_STS_USBINT;



Home | Main Index | Thread Index | Old Index