network: replace logging helpers

s/error_log_errno(/log_error_errno(-1, /g s/minus_one_set_errno(/ret_set_errno(-1, /g Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 17809bcf
...@@ -364,7 +364,7 @@ static int instantiate_phys(struct lxc_handler *handler, struct lxc_netdev *netd ...@@ -364,7 +364,7 @@ static int instantiate_phys(struct lxc_handler *handler, struct lxc_netdev *netd
mtu_orig = netdev_get_mtu(netdev->ifindex); mtu_orig = netdev_get_mtu(netdev->ifindex);
if (mtu_orig < 0) { if (mtu_orig < 0) {
SYSERROR("Failed to get original mtu for interface \"%s\"", netdev->link); SYSERROR("Failed to get original mtu for interface \"%s\"", netdev->link);
return minus_one_set_errno(-mtu_orig); return ret_set_errno(-1, -mtu_orig);
} }
netdev->priv.phys_attr.mtu = mtu_orig; netdev->priv.phys_attr.mtu = mtu_orig;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment