summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>1999-12-01 00:40:53 +0000
committerthorpej <thorpej@NetBSD.org>1999-12-01 00:40:53 +0000
commit66a51bd133d8993f3738c2e83c1965b45f3fa9f5 (patch)
tree304264193ceec424a368542798f61607b4e641bb /sys/dev
parent12f7832ebcc4c99766befc7a891fdb79365fc6bd (diff)
Quiet down the "excessive collision" messages w/ LEDEBUG. None of the other
Ethernet drivers really report this quite as loudly as this did.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/am7990.c4
-rw-r--r--sys/dev/ic/am79900.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/ic/am7990.c b/sys/dev/ic/am7990.c
index 32982abce95..95775ecce17 100644
--- a/sys/dev/ic/am7990.c
+++ b/sys/dev/ic/am7990.c
@@ -1,4 +1,4 @@
-/* $NetBSD: am7990.c,v 1.55 1999/10/29 19:50:07 ragge Exp $ */
+/* $NetBSD: am7990.c,v 1.56 1999/12/01 00:40:53 thorpej Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -362,9 +362,11 @@ am7990_tint(sc)
if (tmd.tmd3 & LE_T3_LCOL)
ifp->if_collisions++;
if (tmd.tmd3 & LE_T3_RTRY) {
+#ifdef LEDEBUG
printf("%s: excessive collisions, tdr %d\n",
sc->sc_dev.dv_xname,
tmd.tmd3 & LE_T3_TDR_MASK);
+#endif
ifp->if_collisions += 16;
}
ifp->if_oerrors++;
diff --git a/sys/dev/ic/am79900.c b/sys/dev/ic/am79900.c
index 018a5754aba..6b91609fe6b 100644
--- a/sys/dev/ic/am79900.c
+++ b/sys/dev/ic/am79900.c
@@ -1,4 +1,4 @@
-/* $NetBSD: am79900.c,v 1.3 1998/08/08 23:51:39 mycroft Exp $ */
+/* $NetBSD: am79900.c,v 1.4 1999/12/01 00:40:53 thorpej Exp $ */
/*-
* Copyright (c) 1998
@@ -323,8 +323,10 @@ am79900_tint(sc)
if (tmd.tmd2 & LE_T2_LCOL)
ifp->if_collisions++;
if (tmd.tmd2 & LE_T2_RTRY) {
+#ifdef LEDEBUG
printf("%s: excessive collisions\n",
sc->sc_dev.dv_xname);
+#endif
ifp->if_collisions += 16;
}
ifp->if_oerrors++;