mac80211: Add iface name when calling WARN-ON.
PATCH v3 1/1 mac80211: Add iface name when calling WARN-ON.
From: Ben Greear <[email protected]>
This lets the user know which interface has failed the check_sdata_in_driver check.
Signed-off-by Ben Greear <[email protected]>
---
:100644 100644 e8960ae... b6ef8e7... M net/mac80211/driver-ops.h
net/mac80211/driver-ops.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
net/mac80211/driver-ops.h +3 -1
@@ -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 *
Signature · 1 line
1.7.3.4