From 96668eef93c90df63b2985df3b1ffe746a5db2c7 Mon Sep 17 00:00:00 2001 From: Josef Karthauser Date: Mon, 1 Apr 2002 21:56:42 +0000 Subject: [PATCH] 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 --- sys/dev/usb/uhci.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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;