Commit 572f152e authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

aarch64:get_task_regs(): use pr_perror()

As ptrace() sets errno, it makes sense to use pr_perror().
This also fixes the bug of missing '\n'.
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Acked-by: 's avatarAndrew Vagin <avagin@odin.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent a1457a7b
...@@ -92,14 +92,14 @@ int get_task_regs(pid_t pid, user_regs_struct_t regs, CoreEntry *core) ...@@ -92,14 +92,14 @@ int get_task_regs(pid_t pid, user_regs_struct_t regs, CoreEntry *core)
iov.iov_base = &regs; iov.iov_base = &regs;
iov.iov_len = sizeof(user_regs_struct_t); iov.iov_len = sizeof(user_regs_struct_t);
if ((ret = ptrace(PTRACE_GETREGSET, pid, NT_PRSTATUS, &iov))) { if ((ret = ptrace(PTRACE_GETREGSET, pid, NT_PRSTATUS, &iov))) {
pr_err("Failed to obtain CPU registers for %d!", pid); pr_perror("Failed to obtain CPU registers for %d", pid);
goto err; goto err;
} }
iov.iov_base = &fpsimd; iov.iov_base = &fpsimd;
iov.iov_len = sizeof(fpsimd); iov.iov_len = sizeof(fpsimd);
if ((ret = ptrace(PTRACE_GETREGSET, pid, NT_PRFPREG, &iov))) { if ((ret = ptrace(PTRACE_GETREGSET, pid, NT_PRFPREG, &iov))) {
pr_err("Failed to obtain FPU registers for %d!", pid); pr_perror("Failed to obtain FPU registers for %d", pid);
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