summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-netdev-ipvlan.c
diff options
context:
space:
mode:
authorSusant Sahani <susant@redhat.com>2015-06-11 09:41:33 +0200
committerSusant Sahani <susant@redhat.com>2015-06-11 09:41:33 +0200
commitf6a0ea8568c6d2676239da7f8c67ae6b496fffa4 (patch)
tree7173c7f5a3d85f892c0cd455908f80dc65a4c438 /src/network/networkd-netdev-ipvlan.c
parentnetworkd: macvlan improve logging (diff)
downloadsystemd-f6a0ea8568c6d2676239da7f8c67ae6b496fffa4.tar.xz
systemd-f6a0ea8568c6d2676239da7f8c67ae6b496fffa4.zip
networkd: improve logging
Replace strerror() usage with log_netdev_error_errno()
Diffstat (limited to '')
-rw-r--r--src/network/networkd-netdev-ipvlan.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/network/networkd-netdev-ipvlan.c b/src/network/networkd-netdev-ipvlan.c
index 5189000c1f..f1c8e0ccdb 100644
--- a/src/network/networkd-netdev-ipvlan.c
+++ b/src/network/networkd-netdev-ipvlan.c
@@ -42,13 +42,9 @@ static int netdev_ipvlan_fill_message_create(NetDev *netdev, Link *link, sd_rtnl
assert(netdev->ifname);
if (m->mode != _NETDEV_IPVLAN_MODE_INVALID) {
- r = sd_rtnl_message_append_u16(req, IFLA_IPVLAN_MODE, m->mode);
- if (r < 0) {
- log_netdev_error(netdev,
- "Could not append IFLA_IPVLAN_MODE attribute: %s",
- strerror(-r));
- return r;
- }
+ r = sd_rtnl_message_append_u16(req, IFLA_IPVLAN_MODE, m->mode);
+ if (r < 0)
+ return log_netdev_error_errno(netdev, r, "Could not append IFLA_IPVLAN_MODE attribute: %m");
}
return 0;