diff options
author | Ben Greear <greearb@candelatech.com> | 2012-03-15 16:22:05 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-09 16:05:57 -0400 |
commit | d17087e78d3961bd42f99cc3cf8cbf2d7d8ef55e (patch) | |
tree | 1f4b1cd96354b9ec58a3a403d5d1cff004b0c863 /net/mac80211 | |
parent | 68d9e1fa24d9c7c2e527f49df8d18fb8cf0ec943 (diff) | |
download | linux-3.10-d17087e78d3961bd42f99cc3cf8cbf2d7d8ef55e.tar.gz linux-3.10-d17087e78d3961bd42f99cc3cf8cbf2d7d8ef55e.tar.bz2 linux-3.10-d17087e78d3961bd42f99cc3cf8cbf2d7d8ef55e.zip |
mac80211: Add iface name when calling WARN-ON.
This lets the user know which interface has failed
the check_sdata_in_driver check.
Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/driver-ops.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h index af4691fed64..e8dbda1b5b8 100644 --- a/net/mac80211/driver-ops.h +++ b/net/mac80211/driver-ops.h @@ -7,7 +7,9 @@ static inline void check_sdata_in_driver(struct ieee80211_sub_if_data *sdata) { - WARN_ON(!(sdata->flags & IEEE80211_SDATA_IN_DRIVER)); + WARN(!(sdata->flags & IEEE80211_SDATA_IN_DRIVER), + "%s: Failed check-sdata-in-driver check, flags: 0x%x\n", + sdata->dev->name, sdata->flags); } static inline struct ieee80211_sub_if_data * |