diff options
author | Tom Gundersen <teg@jklm.no> | 2014-03-28 18:20:31 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-03-28 19:16:21 +0100 |
commit | ba5596ec2ed65943b66d42fbe6e9ef7ebc79216c (patch) | |
tree | d342b5d187dd255956542be0ca9f768a94e6d2a9 /src/network/networkd-manager.c | |
parent | d8e538ecd9e62f841242f07e3df5c835c1ba6313 (diff) |
networkd: netdev - improve logging when setting ifindex
Diffstat (limited to 'src/network/networkd-manager.c')
-rw-r--r-- | src/network/networkd-manager.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c index 684b1c7ad3..b2cb0fab4d 100644 --- a/src/network/networkd-manager.c +++ b/src/network/networkd-manager.c @@ -323,12 +323,8 @@ static int manager_rtnl_process_link(sd_rtnl *rtnl, sd_rtnl_message *message, vo NetDev *netdev; r = netdev_get(m, name, &netdev); - if (r >= 0) { - r = netdev_set_ifindex(netdev, message); - if (r < 0) - log_debug("could not set ifindex of netdev '%s' to %d: %s", - name, ifindex, strerror(-r)); - } + if (r >= 0) + netdev_set_ifindex(netdev, message); } r = link_get(m, ifindex, &link); |