From: Christian Brauner Date: Thu, 25 Feb 2021 22:29:54 +0000 (+0100) Subject: commands: use debug logging X-Git-Tag: lxc-5.0.0~267^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=daad4f954c67d2a46309621071fb499828c61431;p=thirdparty%2Flxc.git commands: use debug logging 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 --- diff --git a/src/lxc/commands.c b/src/lxc/commands.c index 1cabf53ad..24c1a8782 100644 --- a/src/lxc/commands.c +++ b/src/lxc/commands.c @@ -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; }