svn commit: r220724 - head/sys/dev/iwn

Bernhard Schmidt bschmidt at freebsd.org
Sat Apr 16 15:12:39 UTC 2011


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


More information about the svn-src-head mailing list