Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Quiet down the "excessive collision" messages w/ ...



details:   https://anonhg.NetBSD.org/src/rev/5dd5b24a2316
branches:  trunk
changeset: 478988:5dd5b24a2316
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Dec 01 00:40:53 1999 +0000

description:
Quiet down the "excessive collision" messages w/ LEDEBUG.  None of the other
Ethernet drivers really report this quite as loudly as this did.

diffstat:

 sys/dev/ic/am7990.c  |  4 +++-
 sys/dev/ic/am79900.c |  4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diffs (41 lines):

diff -r 1481dc11a19a -r 5dd5b24a2316 sys/dev/ic/am7990.c
--- a/sys/dev/ic/am7990.c       Tue Nov 30 22:32:08 1999 +0000
+++ b/sys/dev/ic/am7990.c       Wed Dec 01 00:40:53 1999 +0000
@@ -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 @@
                        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 -r 1481dc11a19a -r 5dd5b24a2316 sys/dev/ic/am79900.c
--- a/sys/dev/ic/am79900.c      Tue Nov 30 22:32:08 1999 +0000
+++ b/sys/dev/ic/am79900.c      Wed Dec 01 00:40:53 1999 +0000
@@ -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 @@
                        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++;



Home | Main Index | Thread Index | Old Index