diff options
author | Tom Gundersen <teg@jklm.no> | 2014-01-03 18:20:11 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-01-03 18:20:11 +0100 |
commit | aa3437a573ed2a2b2a03c9649fe11d27b40a772b (patch) | |
tree | 052599e81fc960b1dbfa8dfb0162967ae5b47051 /src/network/networkd-manager.c | |
parent | 2672953bde548f3648eb6a24dbda415604262cea (diff) |
networkd: print the ifindex of added links
This debug information may be useful when comapring to dropped rtnetlink messages.
Diffstat (limited to 'src/network/networkd-manager.c')
-rw-r--r-- | src/network/networkd-manager.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c index 11c3efe901..7b0c5d7653 100644 --- a/src/network/networkd-manager.c +++ b/src/network/networkd-manager.c @@ -143,17 +143,18 @@ static int manager_process_link(Manager *m, struct udev_device *device) { link_free(link); } else { - r = link_add(m, device); + r = link_add(m, device, &link); if (r < 0) { if (r == -EEXIST) log_debug("%s: link already exists, ignoring", - udev_device_get_sysname(device)); + link->ifname); else log_error("%s: could not handle link: %s", udev_device_get_sysname(device), strerror(-r)); } else - log_debug("%s: link added", udev_device_get_sysname(device)); + log_debug("%s: link (with ifindex %" PRIu64") added", + link->ifname, link->ifindex); } return 0; |