diff options
author | James Prestwood <prestwoj@gmail.com> | 2020-05-04 08:24:17 -0700 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2020-05-01 19:54:37 -0500 |
commit | d6a3798078718e16fa87e52cc6878da8e26e68ec (patch) | |
tree | 15aa6f1563a4277bff9256a41c460d6c0504eaaa | |
parent | 57b02108af020707aba9adc85e5983d10eb2360e (diff) | |
download | iwd-d6a3798078718e16fa87e52cc6878da8e26e68ec.tar.gz |
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.
-rw-r--r-- | src/manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/manager.c b/src/manager.c index f351c7801..5462418b2 100644 --- a/src/manager.c +++ b/src/manager.c @@ -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: |