summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/dev
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/mvme68k/dev
parent420e5d23dfbecd953bb18aa97462024ddac6954b (diff)
in the absense of link state handling, drivers should still be silent; ok miod
Diffstat (limited to 'sys/arch/mvme68k/dev')
-rw-r--r--sys/arch/mvme68k/dev/if_ie.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/sys/arch/mvme68k/dev/if_ie.c b/sys/arch/mvme68k/dev/if_ie.c
index a3a4888cccc..8d19de4407a 100644
--- a/sys/arch/mvme68k/dev/if_ie.c
+++ b/sys/arch/mvme68k/dev/if_ie.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ie.c,v 1.38 2009/03/01 21:37:41 miod Exp $ */
+/* $OpenBSD: if_ie.c,v 1.39 2009/10/31 14:31:11 deraadt Exp $ */
/*-
* Copyright (c) 1999 Steve Murphree, Jr.
@@ -692,19 +692,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++;
}
@@ -1496,9 +1491,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)