Commit 542bb238 authored by Stanislav Kinsburskiy's avatar Stanislav Kinsburskiy Committed by Pavel Emelyanov

sources: fix pr_perror usage

This is log cleanup patch.
Pr_perror prints new line by itself.
Signed-off-by: 's avatarStanislav Kinsburskiy <skinsbursky@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 31a26026
...@@ -879,7 +879,7 @@ static int check_autofs(void) ...@@ -879,7 +879,7 @@ static int check_autofs(void)
dir = mkdtemp(template); dir = mkdtemp(template);
if (!dir) { if (!dir) {
pr_perror("failed to construct temporary name\n"); pr_perror("failed to construct temporary name");
goto free_options; goto free_options;
} }
...@@ -891,7 +891,7 @@ static int check_autofs(void) ...@@ -891,7 +891,7 @@ static int check_autofs(void)
ret = check_autofs_pipe_ino(); ret = check_autofs_pipe_ino();
if (umount(dir)) if (umount(dir))
pr_perror("failed to umount %s\n", dir); pr_perror("failed to umount %s", dir);
unlink_dir: unlink_dir:
if (rmdir(dir)) if (rmdir(dir))
......
...@@ -170,7 +170,7 @@ int join_ns_add(const char *type, char *ns_file, char *extra_opts) ...@@ -170,7 +170,7 @@ int join_ns_add(const char *type, char *ns_file, char *extra_opts)
jn->nd = &mnt_ns_desc; jn->nd = &mnt_ns_desc;
join_ns_flags |= CLONE_NEWNS; join_ns_flags |= CLONE_NEWNS;
} else { } else {
pr_perror("invalid namespace type %s\n", type); pr_err("invalid namespace type %s\n", type);
goto err; goto err;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment