Search Linux Wireless

Re: [PATCH] mac80211: Add iface name when calling WARN-ON.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2012-03-10 at 09:16 -0800, Ben Greear wrote:
[]
> >> diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h
[]
> >> @@ -7,7 +7,11 @@
> >>
> >>   static inline void check_sdata_in_driver(struct ieee80211_sub_if_data *sdata)
> >>   {
> >> -	WARN_ON(!(sdata->flags&  IEEE80211_SDATA_IN_DRIVER));
> >> +	if (unlikely(!(sdata->flags&  IEEE80211_SDATA_IN_DRIVER))) {
> >> +		printk(KERN_ERR "%s:  Failed check-sdata-in-driver check, flags: 0x%x\n",
> >> +		       sdata->dev->name, sdata->flags);

Perhaps better as:
		netdev_err(sdata->dev, "%s(): Failed check, flags: 0x%x\n",
			   __func__, sdata->flags);


--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux