cvs commit: src/sys/pci if_de.c

Robert Watson rwatson at FreeBSD.org
Sun Jan 30 03:43:26 PST 2005


On Sun, 30 Jan 2005, Gleb Smirnoff wrote:

> BTW, what about this patch:

Fine by me.

Robert N M Watson


> 
> 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