[13/14] No \n in pr_perror

Submitted by Kir Kolyshkin on March 21, 2017, 10:03 p.m.

Details

Message ID 20170321220312.21346-4-kir@openvz.org
State New
Series "Spring '07 cleaning"
Headers show

Commit Message

Kir Kolyshkin March 21, 2017, 10:03 p.m.
It adds one for you already.

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

Patch hide | download patch | download mbox

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;
 			}