summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-05-16 14:47:43 +0200
committerTom Gundersen <teg@jklm.no>2014-05-16 14:52:02 +0200
commit3c4cb0645c8e1e2ae37d775da8e5201fa06da9cf (patch)
tree4a87a6091a85faa93acc06c2d60fa62bf0e008da /src/network
parent8f5675cc75051f9c38f6093ea354aab6a17aed43 (diff)
networkd: log the initialization status of links
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-link.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 34b8d616bb..d3777c8857 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -1690,7 +1690,7 @@ int link_initialized(Link *link, struct udev_device *device) {
if (device)
link->udev_device = udev_device_ref(device);
- log_debug_link(link, "link initialized");
+ log_info_link(link, "udev initialized link");
r = network_get(link->manager, device, link->ifname, &link->mac, &network);
if (r == -ENOENT) {
@@ -1861,9 +1861,11 @@ int link_add(Manager *m, sd_rtnl_message *message, Link **ret) {
return -errno;
}
- if (udev_device_get_is_initialized(device) <= 0)
+ if (udev_device_get_is_initialized(device) <= 0) {
/* not yet ready */
+ log_info_link(link, "udev initializing link...");
return 0;
+ }
}
r = link_initialized(link, device);