From: Ben Greear Date: Thu, 15 Mar 2012 23:22:05 +0000 (-0700) Subject: mac80211: Add iface name when calling WARN-ON. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d17087e78d3961bd42f99cc3cf8cbf2d7d8ef55e;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: John W. Linville --- diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h index af4691fed645..e8dbda1b5b8a 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 *