]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
network: replace logging helpers
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 7 Dec 2019 16:24:29 +0000 (17:24 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 8 Dec 2019 01:31:55 +0000 (02:31 +0100)
s/error_log_errno(/log_error_errno(-1, /g
s/minus_one_set_errno(/ret_set_errno(-1, /g

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/network.c

index a268029092fb311dc11ba212eaa779aecb3901db..f8dd98459a626e533a83e70296f2b6479aee5d41 100644 (file)
@@ -364,7 +364,7 @@ static int instantiate_phys(struct lxc_handler *handler, struct lxc_netdev *netd
        mtu_orig = netdev_get_mtu(netdev->ifindex);
        if (mtu_orig < 0) {
                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;