[CRIU] [PATCH] service: change a few "puts" with "pr_perror"

Ruslan Kuprieiev kupruser at gmail.com
Fri Sep 20 18:19:45 EDT 2013


Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>

-------------- next part --------------
diff --git a/cr-service.c b/cr-service.c
index f7ecffc..2c69fcf 100644
--- a/cr-service.c
+++ b/cr-service.c
@@ -27,13 +27,13 @@ static int recv_criu_msg(int socket_fd, CriuReq **msg)
 
 	len = read(socket_fd, buf, MAX_MSG_SIZE);
 	if (len == -1) {
-		puts("Can't read request");
+		pr_perror("Can't read request");
 		return -1;
 	}
 
 	*msg = criu_req__unpack(NULL, len, buf);
 	if (!*msg) {
-		puts("Failed unpacking request");
+		pr_perror("Failed unpacking request");
 		return -1;
 	}
 



More information about the CRIU mailing list