diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index 5a10dd6013b5..929e8f5fe169 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;