mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ktest: Fix typos in ktest.pl
@ 2020-03-09 11:54 Masanari Iida
  2020-03-09 14:59 ` Randy Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Masanari Iida @ 2020-03-09 11:54 UTC (permalink / raw)
  To: linux-kernel, rostedt, rdunlap; +Cc: Masanari Iida

This patch fixes multipe spelling typo found in ktest.pl.

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
---
 tools/testing/ktest/ktest.pl | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index 6a605ba75dd6..dab03d80c902 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -1030,7 +1030,7 @@ sub __read_config {
 	    }
 
 	    if (!$skip && $rest !~ /^\s*$/) {
-		die "$name: $.: Gargbage found after $type\n$_";
+		die "$name: $.: Garbage found after $type\n$_";
 	    }
 
 	    if ($skip && $type eq "TEST_START") {
@@ -1063,7 +1063,7 @@ sub __read_config {
 	    }
 
 	    if ($rest !~ /^\s*$/) {
-		die "$name: $.: Gargbage found after DEFAULTS\n$_";
+		die "$name: $.: Garbage found after DEFAULTS\n$_";
 	    }
 
 	} elsif (/^\s*INCLUDE\s+(\S+)/) {
@@ -1154,7 +1154,7 @@ sub __read_config {
 	    # on of these sections that have SKIP defined.
 	    # The save variable can be
 	    # defined multiple times and the new one simply overrides
-	    # the prevous one.
+	    # the previous one.
 	    set_variable($lvalue, $rvalue);
 
 	} else {
@@ -1234,7 +1234,7 @@ sub read_config {
 	foreach my $option (keys %not_used) {
 	    print "$option\n";
 	}
-	print "Set IGRNORE_UNUSED = 1 to have ktest ignore unused variables\n";
+	print "Set IGNORE_UNUSED = 1 to have ktest ignore unused variables\n";
 	if (!read_yn "Do you want to continue?") {
 	    exit -1;
 	}
@@ -1345,7 +1345,7 @@ sub eval_option {
 	# Check for recursive evaluations.
 	# 100 deep should be more than enough.
 	if ($r++ > 100) {
-	    die "Over 100 evaluations accurred with $option\n" .
+	    die "Over 100 evaluations occurred with $option\n" .
 		"Check for recursive variables\n";
 	}
 	$prev = $option;
@@ -1461,7 +1461,7 @@ sub get_test_name() {
 
 sub dodie {
 
-    # avoid recusion
+    # avoid recursion
     return if ($in_die);
     $in_die = 1;
 
-- 
2.26.0.rc0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ktest: Fix typos in ktest.pl
  2020-03-09 11:54 [PATCH] ktest: Fix typos in ktest.pl Masanari Iida
@ 2020-03-09 14:59 ` Randy Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2020-03-09 14:59 UTC (permalink / raw)
  To: Masanari Iida, linux-kernel, rostedt

On 3/9/20 4:54 AM, Masanari Iida wrote:
> This patch fixes multipe spelling typo found in ktest.pl.
> 
> Signed-off-by: Masanari Iida <standby24x7@gmail.com>

Looks good.  Thanks.

Acked-by: Randy Dunlap <rdunlap@infradead.org>

> ---
>  tools/testing/ktest/ktest.pl | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
> index 6a605ba75dd6..dab03d80c902 100755
> --- a/tools/testing/ktest/ktest.pl
> +++ b/tools/testing/ktest/ktest.pl
> @@ -1030,7 +1030,7 @@ sub __read_config {
>  	    }
>  
>  	    if (!$skip && $rest !~ /^\s*$/) {
> -		die "$name: $.: Gargbage found after $type\n$_";
> +		die "$name: $.: Garbage found after $type\n$_";
>  	    }
>  
>  	    if ($skip && $type eq "TEST_START") {
> @@ -1063,7 +1063,7 @@ sub __read_config {
>  	    }
>  
>  	    if ($rest !~ /^\s*$/) {
> -		die "$name: $.: Gargbage found after DEFAULTS\n$_";
> +		die "$name: $.: Garbage found after DEFAULTS\n$_";
>  	    }
>  
>  	} elsif (/^\s*INCLUDE\s+(\S+)/) {
> @@ -1154,7 +1154,7 @@ sub __read_config {
>  	    # on of these sections that have SKIP defined.
>  	    # The save variable can be
>  	    # defined multiple times and the new one simply overrides
> -	    # the prevous one.
> +	    # the previous one.
>  	    set_variable($lvalue, $rvalue);
>  
>  	} else {
> @@ -1234,7 +1234,7 @@ sub read_config {
>  	foreach my $option (keys %not_used) {
>  	    print "$option\n";
>  	}
> -	print "Set IGRNORE_UNUSED = 1 to have ktest ignore unused variables\n";
> +	print "Set IGNORE_UNUSED = 1 to have ktest ignore unused variables\n";
>  	if (!read_yn "Do you want to continue?") {
>  	    exit -1;
>  	}
> @@ -1345,7 +1345,7 @@ sub eval_option {
>  	# Check for recursive evaluations.
>  	# 100 deep should be more than enough.
>  	if ($r++ > 100) {
> -	    die "Over 100 evaluations accurred with $option\n" .
> +	    die "Over 100 evaluations occurred with $option\n" .
>  		"Check for recursive variables\n";
>  	}
>  	$prev = $option;
> @@ -1461,7 +1461,7 @@ sub get_test_name() {
>  
>  sub dodie {
>  
> -    # avoid recusion
> +    # avoid recursion
>      return if ($in_die);
>      $in_die = 1;
>  
> 


-- 
~Randy

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-09 14:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-09 11:54 [PATCH] ktest: Fix typos in ktest.pl Masanari Iida
2020-03-09 14:59 ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®