diff options
author | joe <joe@FreeBSD.org> | 2002-04-01 21:56:42 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2002-04-01 21:56:42 +0000 |
commit | eef2a1f1c70e06245e9496dc71631b01233c10b7 (patch) | |
tree | e6a138740320d682eabb4d87b9f407ccd3e497a4 /sys | |
parent | 15dc222b823665d63da106fbde3ab6ead56a87a3 (diff) | |
download | FreeBSD-src-eef2a1f1c70e06245e9496dc71631b01233c10b7.zip FreeBSD-src-eef2a1f1c70e06245e9496dc71631b01233c10b7.tar.gz |
MFNetBSD:
revision 1.138
date: 2001/10/02 17:59:38; author: pooka; state: Exp; lines: +6 -6
move DIAGNOSTIC-printf up one block to make it reachable
noted by Christophe Kalt in private email
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/uhci.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index 5a10dd6..929e8f5 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -1,5 +1,4 @@ -/* $NetBSD: uhci.c,v 1.136 2001/07/11 14:11:00 augustss Exp $ */ - +/* $NetBSD: uhci.c,v 1.138 2001/10/02 17:59:38 pooka Exp $ */ /* $FreeBSD$ */ /* @@ -1177,6 +1176,11 @@ uhci_intr(void *arg) 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)); @@ -1184,11 +1188,6 @@ uhci_intr(void *arg) 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; |