2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

pr_perror(): don't end message with a period

When pr_perror is used, an error message is appended with a comma
and an strerror(errno), so we should not put a period at the end,
otherwise we'll end up with something like this:

	Error: Can't bind.: Permission denied

Found by git grep -w pr_perror | grep '\."'

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Kir Kolyshkin
2013-12-12 22:15:00 +04:00
committed by Pavel Emelyanov
parent 078465859b
commit abd061481b
3 changed files with 10 additions and 10 deletions

View File

@@ -246,13 +246,13 @@ int open_image_dir(char *dir)
ret = symlinkat(opts.img_parent, fd, CR_PARENT_LINK);
if (ret < 0) {
pr_perror("Can't link parent snapshot.");
pr_perror("Can't link parent snapshot");
goto err;
}
pfd = openat(fd, CR_PARENT_LINK, O_RDONLY);
if (pfd < 0) {
pr_perror("Can't open parent snapshot.");
pr_perror("Can't open parent snapshot");
goto err;
}