diff options
author | Andy Lutomirski <luto@kernel.org> | 2016-02-10 17:15:25 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-02-17 03:51:06 -0500 |
commit | adcfd23ead69965e3ac3e69f56451dab5e39157a (patch) | |
tree | 7e60cad5262d0366804b89cf5e446671ca79c7eb /tools/testing | |
parent | 053080a9d1c8cf1950115ad92ce94242ebc5f25c (diff) |
selftests/x86: Fix some error messages in ptrace_syscall
I had some obvious typos.
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Robert O'Callahan <robert@ocallahan.org>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/e5e6772d4802986cf7df702e646fa24ac14f2204.1455142412.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/testing')
-rw-r--r-- | tools/testing/selftests/x86/ptrace_syscall.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/testing/selftests/x86/ptrace_syscall.c b/tools/testing/selftests/x86/ptrace_syscall.c index 5105b49cd8aa..c6a0acc0a632 100644 --- a/tools/testing/selftests/x86/ptrace_syscall.c +++ b/tools/testing/selftests/x86/ptrace_syscall.c | |||
@@ -187,7 +187,7 @@ static void test_ptrace_syscall_restart(void) | |||
187 | 187 | ||
188 | printf("[RUN]\tSYSEMU\n"); | 188 | printf("[RUN]\tSYSEMU\n"); |
189 | if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) | 189 | if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) |
190 | err(1, "PTRACE_SYSCALL"); | 190 | err(1, "PTRACE_SYSEMU"); |
191 | wait_trap(chld); | 191 | wait_trap(chld); |
192 | 192 | ||
193 | if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0) | 193 | if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0) |
@@ -218,7 +218,7 @@ static void test_ptrace_syscall_restart(void) | |||
218 | err(1, "PTRACE_SETREGS"); | 218 | err(1, "PTRACE_SETREGS"); |
219 | 219 | ||
220 | if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) | 220 | if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) |
221 | err(1, "PTRACE_SYSCALL"); | 221 | err(1, "PTRACE_SYSEMU"); |
222 | wait_trap(chld); | 222 | wait_trap(chld); |
223 | 223 | ||
224 | if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0) | 224 | if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0) |
@@ -250,7 +250,7 @@ static void test_ptrace_syscall_restart(void) | |||
250 | err(1, "PTRACE_SETREGS"); | 250 | err(1, "PTRACE_SETREGS"); |
251 | 251 | ||
252 | if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) | 252 | if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) |
253 | err(1, "PTRACE_SYSCALL"); | 253 | err(1, "PTRACE_SYSEMU"); |
254 | wait_trap(chld); | 254 | wait_trap(chld); |
255 | 255 | ||
256 | if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0) | 256 | if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0) |