3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +01:00

manager: move debug print in dump callback

This callback gets called way to many times to have a debug print
in the location that it was. Instead only print if a NEW wiphy is
found, and also print the name/id.
This commit is contained in:
James Prestwood 2020-05-04 08:24:17 -07:00 committed by Denis Kenzior
parent 57b02108af
commit d6a3798078

View File

@ -519,8 +519,6 @@ static void manager_wiphy_dump_callback(struct l_genl_msg *msg, void *user_data)
struct wiphy *wiphy;
struct wiphy_setup_state *state;
l_debug("");
if (nl80211_parse_attrs(msg, NL80211_ATTR_WIPHY, &id,
NL80211_ATTR_WIPHY_NAME, &name,
NL80211_ATTR_UNSPEC) < 0)
@ -543,6 +541,8 @@ static void manager_wiphy_dump_callback(struct l_genl_msg *msg, void *user_data)
state->id = id;
state->wiphy = wiphy;
l_debug("New wiphy %s added (%d)", name, id);
l_queue_push_tail(pending_wiphys, state);
done: