mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
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: 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:
committed by
Pavel Emelyanov
parent
a1457a7b73
commit
572f152ea0
@@ -92,14 +92,14 @@ int get_task_regs(pid_t pid, user_regs_struct_t regs, CoreEntry *core)
|
||||
iov.iov_base = ®s;
|
||||
iov.iov_len = sizeof(user_regs_struct_t);
|
||||
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;
|
||||
}
|
||||
|
||||
iov.iov_base = &fpsimd;
|
||||
iov.iov_len = sizeof(fpsimd);
|
||||
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user