Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Apr 2011 16:44:29 +0200
From:      Bernhard Schmidt <bschmidt@freebsd.org>
To:        src-committers@freebsd.org
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org
Subject:   Re: svn commit: r220724 - head/sys/dev/iwn
Message-ID:  <201104161644.30206.bschmidt@freebsd.org>
In-Reply-To: <201104161438.p3GEc2U0008200@svn.freebsd.org>
References:  <201104161438.p3GEc2U0008200@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Bernhard
On Saturday 16 April 2011 16:38:02  Schmidt wrote:
> Author: bschmidt
> Date: Sat Apr 16 14:38:01 2011
> New Revision: 220724
> URL: http://svn.freebsd.org/changeset/base/220724
> 
> Log:
>   Sync debug and error messages with OpenBSD.

Forgot to mention this:
The device capability announcements are now hidden behind bootverbose.
Once the 11n bits are in this is gonna be quite spammy otherwise.

> 
> Modified: head/sys/dev/iwn/if_iwn.c
> ==============================================================================
> --- head/sys/dev/iwn/if_iwn.c	Sat Apr 16 14:36:43 2011	(r220723)
> +++ head/sys/dev/iwn/if_iwn.c	Sat Apr 16 14:38:01 2011	(r220724)
> @@ -621,9 +620,11 @@ iwn_attach(device_t dev)
>  	    ((sc->rxchainmask >> 2) & 1) +
>  	    ((sc->rxchainmask >> 1) & 1) +
>  	    ((sc->rxchainmask >> 0) & 1);
> -	device_printf(sc->sc_dev, "MIMO %dT%dR, %.4s, address %6D\n",
> -	    sc->ntxchains, sc->nrxchains, sc->eeprom_domain,
> -	    macaddr, ":");
> +	if (bootverbose) {
> +		device_printf(dev, "MIMO %dT%dR, %.4s, address %6D\n",
> +		    sc->ntxchains, sc->nrxchains, sc->eeprom_domain,
> +		    macaddr, ":");
> +	}
>  
>  	ifp = sc->sc_ifp = if_alloc(IFT_IEEE80211);
>  	if (ifp == NULL) {
> @@ -745,12 +746,13 @@ iwn_attach(device_t dev)
>  		goto fail;
>  	}
>  
> -	ieee80211_announce(ic);
> +	if (bootverbose)
> +		ieee80211_announce(ic);
>  	return 0;
>  fail:
>  	iwn_detach(dev);

-- 
Bernhard



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