selftests/x86: Fix some error messages in ptrace_syscall
authorAndy Lutomirski <luto@kernel.org>
Wed, 10 Feb 2016 22:15:25 +0000 (14:15 -0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 17 Feb 2016 08:51:06 +0000 (09:51 +0100)
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>
tools/testing/selftests/x86/ptrace_syscall.c

index 5105b49cd8aa560d78d0e52ec7d12700bfbf83e7..c6a0acc0a63290a3060ce651d6f3d811876e594a 100644 (file)
@@ -187,7 +187,7 @@ static void test_ptrace_syscall_restart(void)
 
        printf("[RUN]\tSYSEMU\n");
        if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0)
-               err(1, "PTRACE_SYSCALL");
+               err(1, "PTRACE_SYSEMU");
        wait_trap(chld);
 
        if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0)
@@ -218,7 +218,7 @@ static void test_ptrace_syscall_restart(void)
                err(1, "PTRACE_SETREGS");
 
        if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0)
-               err(1, "PTRACE_SYSCALL");
+               err(1, "PTRACE_SYSEMU");
        wait_trap(chld);
 
        if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0)
@@ -250,7 +250,7 @@ static void test_ptrace_syscall_restart(void)
                err(1, "PTRACE_SETREGS");
 
        if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0)
-               err(1, "PTRACE_SYSCALL");
+               err(1, "PTRACE_SYSEMU");
        wait_trap(chld);
 
        if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0)