Commit 0905bfa0 authored by Pavel Emelyanov's avatar Pavel Emelyanov

x86: Use pr_perror instead of plain perror

And add pid arg for more verbosity.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent b5dfd452
...@@ -53,14 +53,14 @@ static int task_in_compat_mode(pid_t pid) ...@@ -53,14 +53,14 @@ static int task_in_compat_mode(pid_t pid)
errno = 0; errno = 0;
cs = ptrace(PTRACE_PEEKUSER, pid, offsetof(user_regs_struct_t, cs), 0); cs = ptrace(PTRACE_PEEKUSER, pid, offsetof(user_regs_struct_t, cs), 0);
if (errno != 0) { if (errno != 0) {
perror("Can't get CS register"); pr_perror("Can't get CS register for %d", pid);
return -1; return -1;
} }
errno = 0; errno = 0;
ds = ptrace(PTRACE_PEEKUSER, pid, offsetof(user_regs_struct_t, ds), 0); ds = ptrace(PTRACE_PEEKUSER, pid, offsetof(user_regs_struct_t, ds), 0);
if (errno != 0) { if (errno != 0) {
perror("Can't get DS register"); pr_perror("Can't get DS register for %d", pid);
return -1; 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