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

Kir Kolyshkin kir at openvz.org
Thu Dec 19 14:10:03 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_err() instead.

While at it, remove the period from the log message.

[v2: fix function names]

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..b34d992 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_err("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