2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

Fix pr_perror() usage

When using pr_perror(), format string should not end with \n,
as it is added by the macro itself.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Acked-by: Andrew Vagin <avagin@odin.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Kir Kolyshkin
2015-05-01 02:25:00 +03:00
committed by Pavel Emelyanov
parent de9df91002
commit b17962ad8d
5 changed files with 7 additions and 7 deletions

View File

@@ -607,7 +607,7 @@ static int check_user_ns(int pid)
chld = fork();
if (chld == -1) {
pr_perror("Unable to fork a process\n");
pr_perror("Unable to fork a process");
return -1;
}
@@ -829,7 +829,7 @@ static int write_id_map(pid_t pid, UidGidExtent **extents, int n, char *id_map)
if (fd < 0)
return -1;
if (write(fd, buf, off) != off) {
pr_perror("Unable to write into %s\n", id_map);
pr_perror("Unable to write into %s", id_map);
close(fd);
return -1;
}