Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jan 2005 11:42:49 +0000 (GMT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Gleb Smirnoff <glebius@freebsd.org>
Cc:        cvs-all@freebsd.org
Subject:   Re: cvs commit: src/sys/pci if_de.c
Message-ID:  <Pine.NEB.3.96L.1050130114136.15336C-100000@fledge.watson.org>
In-Reply-To: <20050130075939.GA5433@cell.sick.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

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
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1050130114136.15336C-100000>