diff options
author | Ronny Chevalier <chevalier.ronny@gmail.com> | 2015-06-19 10:24:13 +0200 |
---|---|---|
committer | Ronny Chevalier <chevalier.ronny@gmail.com> | 2015-06-19 10:24:13 +0200 |
commit | cf4d75ccf972a08f7a79950b7a9c7576288bf59e (patch) | |
tree | 363e155cf5a7af29a4541087f27bef162d8beec1 | |
parent | a2088fd025deb90839c909829e27eece40f7fce4 (diff) | |
parent | 0a07970ead3982dddffec7fed090eb05ceb39e1b (diff) |
Merge pull request #297 from ssahani/net
networkd: vlan improve logging
-rw-r--r-- | src/network/networkd-netdev-vlan.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/network/networkd-netdev-vlan.c b/src/network/networkd-netdev-vlan.c index d53e7beaac..195d1a944e 100644 --- a/src/network/networkd-netdev-vlan.c +++ b/src/network/networkd-netdev-vlan.c @@ -34,12 +34,8 @@ static int netdev_vlan_fill_message_create(NetDev *netdev, Link *link, sd_netlin if (v->id <= VLANID_MAX) { r = sd_netlink_message_append_u16(req, IFLA_VLAN_ID, v->id); - if (r < 0) { - log_netdev_error(netdev, - "Could not append IFLA_VLAN_ID attribute: %s", - strerror(-r)); - return r; - } + if (r < 0) + return log_netdev_error_errno(netdev, r, "Could not append IFLA_VLAN_ID attribute: %m"); } return 0; |