[CRIU] [PATCH] sd_service(): don't use pr_perror()

Kir Kolyshkin kir at openvz.org
Thu Dec 19 13:16:51 PST 2013


Since sd_listen_fds() doesn't set errno when returning a value > 1,
it doesn't make sense to use pr_perror(). Use pr_error() instead.

While at it, remove the period from the log message

Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 cr-service.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cr-service.c b/cr-service.c
index 7499a9e..e7ee557 100644
--- a/cr-service.c
+++ b/cr-service.c
@@ -349,7 +349,7 @@ int cr_service(bool daemon_mode)
 
 	n = sd_listen_fds(0);
 	if (n > 1) {
-		pr_perror("Too many file descriptors (%d) recieved.", n);
+		pr_error("Too many file descriptors (%d) recieved", n);
 		goto err;
 	} else if (n == 1)
 		server_fd = SD_LISTEN_FDS_START + 0;
-- 
1.8.1.4



More information about the CRIU mailing list