mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 18:53:52 +08:00
selftests: breakpoints: Use correct error messages in breakpoint_test_arm64.c
When call ptrace(PTRACE_CONT, ...) failed, use correct error messages. Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
parent
f405ac83fa
commit
b1cd3d82a9
@ -145,7 +145,7 @@ static bool run_test(int wr_size, int wp_size, int wr, int wp)
|
||||
|
||||
if (ptrace(PTRACE_CONT, pid, NULL, NULL) < 0) {
|
||||
ksft_print_msg(
|
||||
"ptrace(PTRACE_SINGLESTEP) failed: %s\n",
|
||||
"ptrace(PTRACE_CONT) failed: %s\n",
|
||||
strerror(errno));
|
||||
return false;
|
||||
}
|
||||
@ -159,7 +159,7 @@ static bool run_test(int wr_size, int wp_size, int wr, int wp)
|
||||
}
|
||||
alarm(0);
|
||||
if (WIFEXITED(status)) {
|
||||
ksft_print_msg("child did not single-step\n");
|
||||
ksft_print_msg("child exited prematurely\n");
|
||||
return false;
|
||||
}
|
||||
if (!WIFSTOPPED(status)) {
|
||||
|
Loading…
Reference in New Issue
Block a user