]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
commands: use debug logging
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 25 Feb 2021 22:29:54 +0000 (23:29 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 25 Feb 2021 22:37:20 +0000 (23:37 +0100)
It is fine to fail these commands when a new client talks to an old server or
the kernel doesn't support the necessary features.

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

index 1cabf53adbf1e2d46572eab7c12b49bf5454edc1..24c1a8782d7dee0e612fd334b18060cf960b90e6 100644 (file)
@@ -629,14 +629,14 @@ int lxc_cmd_get_init_pidfd(const char *name, const char *lxcpath)
 
        ret = lxc_cmd(name, &cmd, &stopped, lxcpath, NULL);
        if (ret < 0)
-               return log_debug_errno(-1, errno, "Failed to process init pidfd command");
+               return sysdebug("Failed to process init pidfd command");
 
        if (cmd.rsp.ret < 0)
-               return syserrno_set(cmd.rsp.ret, "Failed to receive init pidfd");
+               return sysdebug_set(cmd.rsp.ret, "Failed to receive init pidfd");
 
        pidfd = PTR_TO_INT(cmd.rsp.data);
        if (pidfd < 0)
-               return syserrno_set(pidfd, "Failed to receive init pidfd");
+               return sysdebug_set(pidfd, "Failed to receive init pidfd");
 
        return pidfd;
 }