* [PATCH][next] selftests/harness: fix spelling mistake "SIGARLM" -> "SIGALRM"
@ 2020-03-27 9:06 Colin King
2020-03-27 19:02 ` Kees Cook
0 siblings, 1 reply; 2+ messages in thread
From: Colin King @ 2020-03-27 9:06 UTC (permalink / raw)
To: Kees Cook, Andy Lutomirski, Will Drewry, Shuah Khan, linux-kselftest
Cc: kernel-janitors, linux-kernel
From: Colin Ian King <colin.king@canonical.com>
There a few identical spelling mistakes, fix these.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
tools/testing/selftests/kselftest_harness.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/testing/selftests/kselftest_harness.h b/tools/testing/selftests/kselftest_harness.h
index 2902f6a78f8a..2bb8c81fc0b4 100644
--- a/tools/testing/selftests/kselftest_harness.h
+++ b/tools/testing/selftests/kselftest_harness.h
@@ -705,7 +705,7 @@ static void __timeout_handler(int sig, siginfo_t *info, void *ucontext)
/* Sanity check handler execution environment. */
if (!t) {
fprintf(TH_LOG_STREAM,
- "no active test in SIGARLM handler!?\n");
+ "no active test in SIGALRM handler!?\n");
abort();
}
if (sig != SIGALRM || sig != info->si_signo) {
@@ -731,7 +731,7 @@ void __wait_for_test(struct __test_metadata *t)
if (sigaction(SIGALRM, &action, &saved_action)) {
t->passed = 0;
fprintf(TH_LOG_STREAM,
- "%s: unable to install SIGARLM handler\n",
+ "%s: unable to install SIGALRM handler\n",
t->name);
return;
}
@@ -743,7 +743,7 @@ void __wait_for_test(struct __test_metadata *t)
if (sigaction(SIGALRM, &saved_action, NULL)) {
t->passed = 0;
fprintf(TH_LOG_STREAM,
- "%s: unable to uninstall SIGARLM handler\n",
+ "%s: unable to uninstall SIGALRM handler\n",
t->name);
return;
}
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH][next] selftests/harness: fix spelling mistake "SIGARLM" -> "SIGALRM"
2020-03-27 9:06 [PATCH][next] selftests/harness: fix spelling mistake "SIGARLM" -> "SIGALRM" Colin King
@ 2020-03-27 19:02 ` Kees Cook
0 siblings, 0 replies; 2+ messages in thread
From: Kees Cook @ 2020-03-27 19:02 UTC (permalink / raw)
To: Colin King
Cc: Andy Lutomirski, Will Drewry, Shuah Khan, linux-kselftest,
kernel-janitors, linux-kernel
On Fri, Mar 27, 2020 at 09:06:48AM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> There a few identical spelling mistakes, fix these.
Argh, thanks Colin!
Acked-by: Kees Cook <keescook@chromium.org>
-Kees
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
> tools/testing/selftests/kselftest_harness.h | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/tools/testing/selftests/kselftest_harness.h b/tools/testing/selftests/kselftest_harness.h
> index 2902f6a78f8a..2bb8c81fc0b4 100644
> --- a/tools/testing/selftests/kselftest_harness.h
> +++ b/tools/testing/selftests/kselftest_harness.h
> @@ -705,7 +705,7 @@ static void __timeout_handler(int sig, siginfo_t *info, void *ucontext)
> /* Sanity check handler execution environment. */
> if (!t) {
> fprintf(TH_LOG_STREAM,
> - "no active test in SIGARLM handler!?\n");
> + "no active test in SIGALRM handler!?\n");
> abort();
> }
> if (sig != SIGALRM || sig != info->si_signo) {
> @@ -731,7 +731,7 @@ void __wait_for_test(struct __test_metadata *t)
> if (sigaction(SIGALRM, &action, &saved_action)) {
> t->passed = 0;
> fprintf(TH_LOG_STREAM,
> - "%s: unable to install SIGARLM handler\n",
> + "%s: unable to install SIGALRM handler\n",
> t->name);
> return;
> }
> @@ -743,7 +743,7 @@ void __wait_for_test(struct __test_metadata *t)
> if (sigaction(SIGALRM, &saved_action, NULL)) {
> t->passed = 0;
> fprintf(TH_LOG_STREAM,
> - "%s: unable to uninstall SIGARLM handler\n",
> + "%s: unable to uninstall SIGALRM handler\n",
> t->name);
> return;
> }
> --
> 2.25.1
>
--
Kees Cook
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-27 19:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-27 9:06 [PATCH][next] selftests/harness: fix spelling mistake "SIGARLM" -> "SIGALRM" Colin King
2020-03-27 19:02 ` Kees Cook
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).