Skip to content

Commit 8f766af

Browse files
mrc0mmandbluca
authored andcommitted
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
1 parent 6870daf commit 8f766af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/network/networkd-wifi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ int manager_genl_process_nl80211_config(sd_netlink *genl, sd_netlink_message *me
116116
}
117117

118118
if (!streq(ifname, link->ifname)) {
119-
log_link_debug_errno(link, r, "nl80211: received %s(%u) message with invalid interface name '%s', ignoring: %m",
120-
strna(nl80211_cmd_to_string(cmd)), cmd, ifname);
119+
log_link_debug(link, "nl80211: received %s(%u) message with invalid interface name '%s', ignoring: %m",
120+
strna(nl80211_cmd_to_string(cmd)), cmd, ifname);
121121
return 0;
122122
}
123123

0 commit comments

Comments
 (0)