1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-08 05:57:26 +03:00

wifi-util: do not set zero errno to log_debug_errno()

(cherry picked from commit 66205cb3f597e43c8446d122fa4cc849c4f101d7)
(cherry picked from commit 8eaf2da0f6c9fbea42d44343c30361dcf79702bf)
This commit is contained in:
Yu Watanabe 2021-04-20 09:23:33 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent 8337ea9091
commit e3640b026a

View File

@ -30,7 +30,7 @@ int wifi_get_interface(sd_netlink *genl, int ifindex, enum nl80211_iftype *iftyp
if (r < 0)
return log_debug_errno(r, "Failed to request information about wifi interface %d: %m", ifindex);
if (!reply) {
log_debug_errno(r, "No reply received to request for information about wifi interface %d, ignoring.", ifindex);
log_debug("No reply received to request for information about wifi interface %d, ignoring.", ifindex);
goto nodata;
}
@ -98,7 +98,7 @@ int wifi_get_station(sd_netlink *genl, int ifindex, struct ether_addr *bssid) {
if (r < 0)
return log_debug_errno(r, "Failed to request information about wifi station: %m");
if (!reply) {
log_debug_errno(r, "No reply received to request for information about wifi station, ignoring.");
log_debug("No reply received to request for information about wifi station, ignoring.");
goto nodata;
}