[lxc-devel] [lxcfs/master] fix epoll create socket error message

ncleaton on Github lxc-bot at linuxcontainers.org
Wed Sep 2 08:07:43 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 895 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200902/fd1ce55c/attachment.bin>
-------------- next part --------------
From a2cc3c1562dff2e58fda024fe40c1162a77dc1ae Mon Sep 17 00:00:00 2001
From: Nick Cleaton <nick at cleaton.net>
Date: Wed, 2 Sep 2020 08:57:12 +0100
Subject: [PATCH] fix epoll create socket error message

Signed-off-by: Nick Cleaton <nick at cleaton.net>
---
 src/utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/utils.c b/src/utils.c
index 710d141..53ed111 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -188,7 +188,7 @@ bool wait_for_sock(int sock, int timeout)
 
 	epfd = epoll_create(1);
 	if (epfd < 0)
-		return log_error(false, "%s\n", "Failed to create epoll socket: %m");
+		return log_error(false, "Failed to create epoll socket: %m");
 
 	ev.events = POLLIN_SET;
 	ev.data.fd = sock;


More information about the lxc-devel mailing list