diff mbox series

[next] selftests: Fix spelling mistake "trucate" -> "truncate"

Message ID 20230505110855.2493457-1-colin.i.king@gmail.com (mailing list archive)
State New
Headers show
Series [next] selftests: Fix spelling mistake "trucate" -> "truncate" | expand

Commit Message

Colin Ian King May 5, 2023, 11:08 a.m. UTC
There is a spelling mistake in a message. Fix it.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
 tools/testing/selftests/cachestat/test_cachestat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Nhat Pham May 5, 2023, 7:01 p.m. UTC | #1
On Fri, May 5, 2023 at 4:08 AM Colin Ian King <colin.i.king@gmail.com> wrote:
>
> There is a spelling mistake in a message. Fix it.
>
> Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
> ---
>  tools/testing/selftests/cachestat/test_cachestat.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/cachestat/test_cachestat.c b/tools/testing/selftests/cachestat/test_cachestat.c
> index c3823b809c25..9be2262e5c17 100644
> --- a/tools/testing/selftests/cachestat/test_cachestat.c
> +++ b/tools/testing/selftests/cachestat/test_cachestat.c
> @@ -191,7 +191,7 @@ bool test_cachestat_shmem(void)
>         }
>
>         if (ftruncate(fd, filesize)) {
> -               ksft_print_msg("Unable to trucate shmem file.\n");
> +               ksft_print_msg("Unable to truncate shmem file.\n");
>                 ret = false;
>                 goto close_fd;
>         }
> --
> 2.30.2
>

Acked-by: Nhat Pham <nphamcs@gmail.com>

Thanks, Colin! I'm forwarding this to Andrew.
Andrew, could you fold this misspelling fix into the patch
as well? I think it's this commit in mm-unstable:

f2277ac105b4 selftests: add selftests for cachestat
diff mbox series

Patch

diff --git a/tools/testing/selftests/cachestat/test_cachestat.c b/tools/testing/selftests/cachestat/test_cachestat.c
index c3823b809c25..9be2262e5c17 100644
--- a/tools/testing/selftests/cachestat/test_cachestat.c
+++ b/tools/testing/selftests/cachestat/test_cachestat.c
@@ -191,7 +191,7 @@  bool test_cachestat_shmem(void)
 	}
 
 	if (ftruncate(fd, filesize)) {
-		ksft_print_msg("Unable to trucate shmem file.\n");
+		ksft_print_msg("Unable to truncate shmem file.\n");
 		ret = false;
 		goto close_fd;
 	}