cvs commit: src/sys/pci if_de.c

Gleb Smirnoff glebius at freebsd.org
Sat Jan 29 23:59:44 PST 2005


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


More information about the cvs-src mailing list