summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-04-22 19:29:14 +0200
committerTom Gundersen <teg@jklm.no>2014-04-22 21:06:00 +0200
commit124fa2c601c6fbbc3751b744c6f68bd522e0c588 (patch)
treec46b581f36a170f00c86cd71743a74dcd2e5719a /src/network
parent2139694e823935d3ac1479aa7c9a78ee3ffdc759 (diff)
networkd: link - log when starting clients fail
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-link.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 653beae1d9..9f632e4f1e 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -1075,8 +1075,11 @@ static int link_acquire_conf(Link *link) {
log_debug_link(link, "acquiring IPv4 link-local address");
r = sd_ipv4ll_start(link->ipv4ll);
- if (r < 0)
+ if (r < 0) {
+ log_warning_link(link, "could not acquire IPv4 "
+ "link-local address");
return r;
+ }
}
if (link->network->dhcp) {
@@ -1085,8 +1088,11 @@ static int link_acquire_conf(Link *link) {
log_debug_link(link, "acquiring DHCPv4 lease");
r = sd_dhcp_client_start(link->dhcp_client);
- if (r < 0)
+ if (r < 0) {
+ log_warning_link(link, "could not acquire DHCPv4 "
+ "lease");
return r;
+ }
}
return 0;