diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-06-25 14:04:22 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-06-29 03:38:38 +0200 |
commit | 599c44e6e22ba5242086c02584512368e66504d6 (patch) | |
tree | b9620aad382ac6c4ef5316477db398c2ac09a757 /src/network | |
parent | bus-util: drop unnecessary !! (diff) | |
download | systemd-599c44e6e22ba5242086c02584512368e66504d6.tar.xz systemd-599c44e6e22ba5242086c02584512368e66504d6.zip |
network: update log message
Closes #9396.
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/networkd-dhcp4.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network/networkd-dhcp4.c b/src/network/networkd-dhcp4.c index 9fd46ed764..1b2e9dafde 100644 --- a/src/network/networkd-dhcp4.c +++ b/src/network/networkd-dhcp4.c @@ -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++) { |