summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-05-15 15:54:28 +0200
committerTom Gundersen <teg@jklm.no>2014-05-15 18:16:31 +0200
commit5261692fe5a4ac82f9783d57a07b0a4786dc01ab (patch)
treeb3965952ebd39663c6f469efd131a3d76cb45691
parentaf4e9e2c563047d524b207e0e3d6816385693a16 (diff)
networkd: log ifindices when links and netdevs are added
-rw-r--r--src/network/networkd-link.c2
-rw-r--r--src/network/networkd-netdev.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 930011ab7f..0a74c94e89 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -1822,7 +1822,7 @@ int link_add(Manager *m, sd_rtnl_message *message, Link **ret) {
link = *ret;
- log_debug_link(link, "link added");
+ log_debug_link(link, "link %"PRIu64" added", link->ifindex);
r = sd_rtnl_message_new_addr(m->rtnl, &req, RTM_GETADDR, link->ifindex, 0);
if (r < 0)
diff --git a/src/network/networkd-netdev.c b/src/network/networkd-netdev.c
index 3bd6c07822..8deef0d50f 100644
--- a/src/network/networkd-netdev.c
+++ b/src/network/networkd-netdev.c
@@ -505,6 +505,8 @@ int netdev_set_ifindex(NetDev *netdev, sd_rtnl_message *message) {
netdev->ifindex = ifindex;
+ log_debug_netdev(netdev, "netdev has index %d", netdev->ifindex);
+
netdev_enter_ready(netdev);
return 0;