summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-10-31 14:31:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-10-31 14:31:12 +0000
commit761c1c3eb61ee388bcee57ef95f92ff04178fec6 (patch)
tree753d51ff5835ea28f47ac1378f102a6e21f909bc /sys/arch/mvme88k
parent420e5d23dfbecd953bb18aa97462024ddac6954b (diff)
in the absense of link state handling, drivers should still be silent; ok miod
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r--sys/arch/mvme88k/dev/if_ie.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/sys/arch/mvme88k/dev/if_ie.c b/sys/arch/mvme88k/dev/if_ie.c
index 1db59f68422..5b0d2f1054b 100644
--- a/sys/arch/mvme88k/dev/if_ie.c
+++ b/sys/arch/mvme88k/dev/if_ie.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ie.c,v 1.43 2008/11/28 02:44:17 brad Exp $ */
+/* $OpenBSD: if_ie.c,v 1.44 2009/10/31 14:31:11 deraadt Exp $ */
/*-
* Copyright (c) 1998 Steve Murphree, Jr.
@@ -662,19 +662,14 @@ ietint(sc)
sc->sc_arpcom.ac_if.if_opackets++;
sc->sc_arpcom.ac_if.if_collisions += status & IE_XS_MAXCOLL;
} else if (status & IE_STAT_ABORT) {
- printf("%s: send aborted\n", sc->sc_dev.dv_xname);
sc->sc_arpcom.ac_if.if_oerrors++;
} else if (status & IE_XS_NOCARRIER) {
- printf("%s: no carrier\n", sc->sc_dev.dv_xname);
sc->sc_arpcom.ac_if.if_oerrors++;
} else if (status & IE_XS_LOSTCTS) {
- printf("%s: lost CTS\n", sc->sc_dev.dv_xname);
sc->sc_arpcom.ac_if.if_oerrors++;
} else if (status & IE_XS_UNDERRUN) {
- printf("%s: DMA underrun\n", sc->sc_dev.dv_xname);
sc->sc_arpcom.ac_if.if_oerrors++;
} else if (status & IE_XS_EXCMAX) {
- printf("%s: too many collisions\n", sc->sc_dev.dv_xname);
sc->sc_arpcom.ac_if.if_collisions += 16;
sc->sc_arpcom.ac_if.if_oerrors++;
}
@@ -1475,9 +1470,11 @@ run_tdr(sc, cmd)
if (result & 0x10000)
printf("%s: TDR command failed\n", sc->sc_dev.dv_xname);
- else if (result & IE_TDR_XCVR)
+ else if (result & IE_TDR_XCVR) {
+#ifdef IEDEBUG
printf("%s: transceiver problem\n", sc->sc_dev.dv_xname);
- else if (result & IE_TDR_OPEN)
+#endif
+ } else if (result & IE_TDR_OPEN)
printf("%s: TDR detected an open %d clocks away\n",
sc->sc_dev.dv_xname, result & IE_TDR_TIME);
else if (result & IE_TDR_SHORT)