]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: update log message
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Jun 2018 12:04:22 +0000 (21:04 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 29 Jun 2018 01:38:38 +0000 (10:38 +0900)
Closes #9396.

src/network/networkd-dhcp4.c

index 9fd46ed764b20890add7a49029370eaf94135e9e..1b2e9dafde5b2def07abeeceeaf6c5e24636cae1 100644 (file)
@@ -81,7 +81,9 @@ static int link_set_dhcp_routes(Link *link) {
                 return log_link_warning_errno(link, r, "DHCP error: could not get address: %m");
 
         n = sd_dhcp_lease_get_routes(link->dhcp_lease, &static_routes);
-        if (n < 0)
+        if (n == -ENODATA)
+                log_link_debug_errno(link, n, "DHCP: No routes received from DHCP server: %m");
+        else if (n < 0)
                 log_link_debug_errno(link, n, "DHCP error: could not get routes: %m");
 
         for (i = 0; i < n; i++) {