network: add error cause in the log

This commit is contained in:
Yu Watanabe
2019-05-07 17:12:09 +02:00
parent 715cedfbf0
commit aa5f4c7773
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -533,7 +533,7 @@ static void dhcp4_handler(sd_dhcp_client *client, int event, void *userdata) {
r = sd_ipv4ll_start(link->ipv4ll);
if (r < 0) {
log_link_warning(link, "Could not acquire IPv4 link-local address: %m");
log_link_warning_errno(link, r, "Could not acquire IPv4 link-local address: %m");
return;
}
}
+1 -1
View File
@@ -175,7 +175,7 @@ static void ipv4ll_handler(sd_ipv4ll *ll, int event, void *userdata) {
r = sd_ipv4ll_restart(ll);
if (r < 0)
log_link_warning(link, "Could not acquire IPv4 link-local address");
log_link_warning_errno(link, r, "Could not acquire IPv4 link-local address: %m");
break;
case SD_IPV4LL_EVENT_BIND:
r = ipv4ll_address_claimed(ll, link);