selftests/powerpc/ptrace: Fix typo in pid_max search error
authorBenjamin Gray <bgray@linux.ibm.com>
Tue, 25 Jul 2023 00:58:40 +0000 (10:58 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 2 Aug 2023 12:22:19 +0000 (22:22 +1000)
pid_max_addr() searches for the 'pid_max' symbol in /proc/kallsyms, and
prints an error if it cannot find it. The error message has a typo,
calling it pix_max.

Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230725005841.28854-4-bgray@linux.ibm.com
tools/testing/selftests/powerpc/ptrace/ptrace-perf-hwbreak.c

index 16c6536..d8a9e95 100644 (file)
@@ -46,7 +46,7 @@ static unsigned long pid_max_addr(void)
                return strtoul(addr, &c, 16);
        }
        fclose(fp);
-       printf("Could not find pix_max. Exiting..\n");
+       printf("Could not find pid_max. Exiting..\n");
        exit(EXIT_FAILURE);
        return -1;
 }