From daad4f954c67d2a46309621071fb499828c61431 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Thu, 25 Feb 2021 23:29:54 +0100 Subject: [PATCH] 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 --- src/lxc/commands.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.47.2