sd-network: fix inverted error message

We get -ENOMSG when there is no lease.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-05-24 19:06:12 +02:00
parent 15dd451535
commit 2206aa5c35
1 changed files with 1 additions and 1 deletions

View File

@ -4069,7 +4069,7 @@ int link_save(Link *link) {
if (link->dhcp6_client) {
r = sd_dhcp6_client_get_lease(link->dhcp6_client, &dhcp6_lease);
if (r < 0 && r != -ENOMSG)
log_link_debug(link, "No DHCPv6 lease");
log_link_debug_errno(link, r, "Failed to get DHCPv6 lease: %m");
}
fprintf(f, "NETWORK_FILE=%s\n", link->network->filename);