Skip to content

Commit

Permalink
Do not output error for setting an async property (#456)
Browse files Browse the repository at this point in the history
This PR supresses outputting an error message when setting an async
property during initialization, which is misleading.
  • Loading branch information
bukepo authored Jan 31, 2020
1 parent 4e2ef14 commit 8409f57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ncp-spinel/SpinelNCPInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,8 @@ SpinelNCPInstance::SpinelNCPInstance(const Settings& settings) :
status = static_cast<NCPControlInterface&>(get_control_interface())
.property_set_value(iter->first, iter->second);

if (status != 0) {
syslog(LOG_WARNING, "Attempt to set property \"%s\" failed with err %d", iter->first.c_str(), status);
if (status != 0 && status != kWPANTUNDStatus_InProgress) {
syslog(LOG_WARNING, "Attempt to set property \"%s\" failed with err %s", iter->first.c_str(), wpantund_status_to_cstr(status));
}
}
}
Expand Down

0 comments on commit 8409f57

Please sign in to comment.