From e70fd6384558746a1353368a43d0010ed3a0dea2 Mon Sep 17 00:00:00 2001 From: scottr Date: Thu, 14 Oct 1999 20:58:18 +0000 Subject: [PATCH] Be less noisy about collision errors. From Dave Huang, closes PR 8605. --- sys/arch/mac68k/dev/if_mc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/arch/mac68k/dev/if_mc.c b/sys/arch/mac68k/dev/if_mc.c index b4778a62c248..ec72e6782026 100644 --- a/sys/arch/mac68k/dev/if_mc.c +++ b/sys/arch/mac68k/dev/if_mc.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_mc.c,v 1.13 1999/05/18 23:52:53 thorpej Exp $ */ +/* $NetBSD: if_mc.c,v 1.14 1999/10/14 20:58:18 scottr Exp $ */ /*- * Copyright (c) 1997 David Huang @@ -510,7 +510,9 @@ struct mc_softc *sc = arg; } if (ir & CERR) { +#ifdef MCDEBUG printf("%s: collision error\n", sc->sc_dev.dv_xname); +#endif sc->sc_if.if_collisions++; } @@ -557,6 +559,7 @@ mc_tint(sc) else if (xmtfs & ONE) sc->sc_if.if_collisions++; else if (xmtfs & RTRY) { + printf("%s: excessive collisions\n", sc->sc_dev.dv_xname); sc->sc_if.if_collisions += 16; sc->sc_if.if_oerrors++; }