Commit 5c9cc71f authored by Pavel Emelyanov's avatar Pavel Emelyanov

log: Replace perror-s with pr_perror-s over code

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent f1b41e08
......@@ -595,7 +595,7 @@ static int get_task_personality(pid_t pid, u32 *personality)
goto err;
if (!fgets(loc_buf, sizeof(loc_buf), file)) {
perror("Can't read task personality");
pr_perror("Can't read task personality");
goto err;
}
......
......@@ -798,7 +798,7 @@ static int restore_root_task(struct pstree_item *init, struct cr_options *opts)
ret = sigaction(SIGCHLD, NULL, &act);
if (ret < 0) {
perror("sigaction() failed\n");
pr_perror("sigaction() failed\n");
return -1;
}
......@@ -809,7 +809,7 @@ static int restore_root_task(struct pstree_item *init, struct cr_options *opts)
ret = sigaction(SIGCHLD, &act, &old_act);
if (ret < 0) {
perror("sigaction() failed\n");
pr_perror("sigaction() failed\n");
return -1;
}
......@@ -880,7 +880,7 @@ out:
ret = sigaction(SIGCHLD, &old_act, NULL);
if (ret < 0) {
perror("sigaction() failed\n");
pr_perror("sigaction() failed\n");
return -1;
}
......
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