summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_nfe.c
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2006-02-12 13:28:31 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2006-02-12 13:28:31 +0000
commitb9bf1fe59ceaee9cfb772a5961706dc2e1733f03 (patch)
tree4f5a4e8a2609e2a9cad354aa4d4d5a044f271a30 /sys/dev/pci/if_nfe.c
parent12a8e7b617060eaa9b76e9d7ae689939e00523ea (diff)
don't print shared interrupts when debugging is on.
Diffstat (limited to 'sys/dev/pci/if_nfe.c')
-rw-r--r--sys/dev/pci/if_nfe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_nfe.c b/sys/dev/pci/if_nfe.c
index 9eebdbca5ad..2a94860354c 100644
--- a/sys/dev/pci/if_nfe.c
+++ b/sys/dev/pci/if_nfe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_nfe.c,v 1.32 2006/02/12 13:25:01 damien Exp $ */
+/* $OpenBSD: if_nfe.c,v 1.33 2006/02/12 13:28:30 damien Exp $ */
/*-
* Copyright (c) 2006 Damien Bergamini <damien.bergamini@free.fr>
@@ -420,14 +420,14 @@ nfe_intr(void *arg)
r = NFE_READ(sc, NFE_IRQ_STATUS);
NFE_WRITE(sc, NFE_IRQ_STATUS, r);
- DPRINTFN(5, ("nfe_intr: interrupt register %x\n", r));
-
if (r == 0) {
/* re-enable interrupts */
NFE_WRITE(sc, NFE_IRQ_MASK, NFE_IRQ_WANTED);
return 0;
}
+ DPRINTFN(5, ("nfe_intr: interrupt register %x\n", r));
+
if (r & NFE_IRQ_LINK) {
NFE_READ(sc, NFE_PHY_STATUS);
NFE_WRITE(sc, NFE_PHY_STATUS, 0xf);