mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
network: don't log non-negative errno
Otherwise bad things happen: systemd-networkd[3140]: wlan0: Saved new link: ifindex=5, iftype=ETHER(1), kind=n/a systemd-networkd[3140]: Assertion '(_error) != 0' failed at src/network/networkd-wifi.c:119, function manager_genl_process_nl80211_config(). Aborting. Resolves: #28534
This commit is contained in:
committed by
Luca Boccassi
parent
6870daff03
commit
8f766afe98
@@ -116,8 +116,8 @@ int manager_genl_process_nl80211_config(sd_netlink *genl, sd_netlink_message *me
|
||||
}
|
||||
|
||||
if (!streq(ifname, link->ifname)) {
|
||||
log_link_debug_errno(link, r, "nl80211: received %s(%u) message with invalid interface name '%s', ignoring: %m",
|
||||
strna(nl80211_cmd_to_string(cmd)), cmd, ifname);
|
||||
log_link_debug(link, "nl80211: received %s(%u) message with invalid interface name '%s', ignoring: %m",
|
||||
strna(nl80211_cmd_to_string(cmd)), cmd, ifname);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user