[CRIU] [PATCH 13/14] No \n in pr_perror

Kir Kolyshkin kir at openvz.org
Thu Mar 23 15:02:10 PDT 2017


It adds one for you already.

Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 criu/image.c | 2 +-
 criu/util.c  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/criu/image.c b/criu/image.c
index 02cc45a..ab12c88 100644
--- a/criu/image.c
+++ b/criu/image.c
@@ -339,7 +339,7 @@ int do_open_remote_image(int dfd, char *path, int flags)
 	}
 
 	if (fchdir(get_service_fd(IMG_FD_OFF)) < 0) {
-		pr_perror("fchdir to dfd failed!\n");
+		pr_perror("fchdir to dfd failed!");
 		close(save);
 		return -1;
 	}
diff --git a/criu/util.c b/criu/util.c
index 1396b37..eb3aee7 100644
--- a/criu/util.c
+++ b/criu/util.c
@@ -530,12 +530,12 @@ int copy_file(int fd_in, int fd_out, size_t bytes)
 		if (opts.remote) {
 			ret = read(fd_in, buffer, chunk);
 			if (ret < 0) {
-				pr_perror("Can't read from fd_in\n");
+				pr_perror("Can't read from fd_in");
 				ret = -1;
 				goto err;
 			}
 			if (write(fd_out, buffer, ret) != ret) {
-				pr_perror("Couldn't write all read bytes\n");
+				pr_perror("Couldn't write all read bytes");
 				ret = -1;
 				goto err;
 			}
-- 
2.9.3



More information about the CRIU mailing list