Commit b1cd3d82 authored by Tiezhu Yang's avatar Tiezhu Yang Committed by Shuah Khan

selftests: breakpoints: Use correct error messages in breakpoint_test_arm64.c

When call ptrace(PTRACE_CONT, ...) failed, use correct error messages.
Signed-off-by: default avatarTiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent f405ac83
...@@ -145,7 +145,7 @@ static bool run_test(int wr_size, int wp_size, int wr, int wp) ...@@ -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) { if (ptrace(PTRACE_CONT, pid, NULL, NULL) < 0) {
ksft_print_msg( ksft_print_msg(
"ptrace(PTRACE_SINGLESTEP) failed: %s\n", "ptrace(PTRACE_CONT) failed: %s\n",
strerror(errno)); strerror(errno));
return false; return false;
} }
...@@ -159,7 +159,7 @@ static bool run_test(int wr_size, int wp_size, int wr, int wp) ...@@ -159,7 +159,7 @@ static bool run_test(int wr_size, int wp_size, int wr, int wp)
} }
alarm(0); alarm(0);
if (WIFEXITED(status)) { if (WIFEXITED(status)) {
ksft_print_msg("child did not single-step\n"); ksft_print_msg("child exited prematurely\n");
return false; return false;
} }
if (!WIFSTOPPED(status)) { if (!WIFSTOPPED(status)) {
......
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