summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-05-19 20:35:21 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-05-19 20:35:21 +0000
commit7a45f464089291610f6169ee4ec321a760d3d0d5 (patch)
treec9ebf72bc2b8fd2df3fa41297e33d6478b78d830 /sys/arch
parent71f3a38d9d990b2bc9029b76d7f2776c0796f747 (diff)
Silence a diagnostic message in multiprocessor kernels, it makes things worse.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/mvme88k/dev/dart.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/arch/mvme88k/dev/dart.c b/sys/arch/mvme88k/dev/dart.c
index 8616f729176..b53df1e8f2e 100644
--- a/sys/arch/mvme88k/dev/dart.c
+++ b/sys/arch/mvme88k/dev/dart.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dart.c,v 1.48 2006/05/08 14:36:10 miod Exp $ */
+/* $OpenBSD: dart.c,v 1.49 2007/05/19 20:35:20 miod Exp $ */
/*
* Mach Operating System
@@ -769,11 +769,14 @@ dartrint(struct dartsoftc *sc, int port)
} else {
if (sr & (FRERR|PERR|ROVRN)) { /* errors */
if (sr & ROVRN)
- printf("dart0: receiver overrun port %c\n", 'A' + port);
+ printf("%s: receiver overrun port %c\n",
+ sc->sc_dev.dv_xname, 'A' + port);
if (sr & FRERR)
- printf("dart0: framing error port %c\n", 'A' + port);
+ printf("%s: framing error port %c\n",
+ sc->sc_dev.dv_xname, 'A' + port);
if (sr & PERR)
- printf("dart0: parity error port %c\n", 'A' + port);
+ printf("%s: parity error port %c\n",
+ sc->sc_dev.dv_xname, 'A' + port);
/* clear error state */
dart_write(sc, ptaddr + DART_CRA, ERRRESET);
} else {
@@ -845,7 +848,7 @@ dartintr(void *arg)
* ready change on a disabled port). This should not happen,
* but we have to claim the interrupt anyway.
*/
-#ifdef DIAGNOSTIC
+#if defined(DIAGNOSTIC) && !defined(MULTIPROCESSOR)
printf("dartintr: spurious interrupt, isr %x imr %x\n",
isr, imr);
#endif