Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jan 2005 10:59:39 +0300
From:      Gleb Smirnoff <glebius@freebsd.org>
To:        Robert Watson <rwatson@freebsd.org>
Cc:        cvs-all@freebsd.org
Subject:   Re: cvs commit: src/sys/pci if_de.c
Message-ID:  <20050130075939.GA5433@cell.sick.ru>
In-Reply-To: <200501292329.j0TNT44N053795@repoman.freebsd.org>
References:  <200501292329.j0TNT44N053795@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 29, 2005 at 11:29:04PM +0000, Robert Watson wrote:
R> rwatson     2005-01-29 23:29:04 UTC
R> 
R>   FreeBSD src repository
R> 
R>   Modified files:        (Branch: RELENG_5)
R>     sys/pci              if_de.c 
R>   Log:
R>   Merge if_de.c:1.160 from HEAD to RELENG_5:
R>   
R>     date: 2004/11/08 19:20:55;  author: phk;  state: Exp;  lines: +2 -1
R>     Hide link up/down/media printfs behind bootverbose

BTW, what about this patch:

Index: if.c
===================================================================
RCS file: /home/ncvs/src/sys/net/if.c,v
retrieving revision 1.216
diff -u -r1.216 if.c
--- if.c        8 Jan 2005 12:42:03 -0000       1.216
+++ if.c        24 Jan 2005 08:11:09 -0000
@@ -984,6 +984,9 @@
                if ((ifp->if_type == IFT_ETHER || ifp->if_type == IFT_L2VLAN) &&
                    IFP2AC(ifp)->ac_netgraph != NULL)
                        (*ng_ether_link_state_p)(ifp, link_state);
+
+               log(LOG_NOTICE, "%s: link state changed to %s\n", ifp->if_xname,
+                   (link_state == LINK_STATE_UP) ? "UP" : "DOWN" );
        }
 }
 
Now link state changes are completely silent.

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050130075939.GA5433>