Skip to contentSkip to conversation

selftests/cachestat: fix grammar and debug prints

PATCH New Mallikarjun Thammanavar 1 participant 1 message Aug 24, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests/cachestat: fix grammar and debug prints

Fix minor grammar in ksft_print_msg() output for better readability.

---
 tools/testing/selftests/cachestat/test_cachestat.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/testing/selftests/cachestat/test_cachestat.c +2 -2
index 632ab44737ec..1417d7fb7910 100644
@@ -76,7 +76,7 @@ bool write_exactly(int fd, size_t filesize)
 		ssize_t write_len = write(fd, cursor, remained);
 
 		if (write_len <= 0) {
-			ksft_print_msg("Unable write random data to file.\n");
+			ksft_print_msg("Unable to write random data to file.\n");
 			ret = false;
 			goto out_free_data;
 		}
@@ -183,7 +183,7 @@ static int test_cachestat(const char *filename, bool write_random, bool create,
 				if (cs.nr_dirty) {
 					ret = KSFT_FAIL;
 					ksft_print_msg(
-						"Number of dirty should be zero after fsync.\n");
+						"Number of dirty pages should be zero after fsync.\n");
 				}
 			} else {
 				ksft_print_msg("Cachestat (after fsync) returned non-zero.\n");
Signature · 1 line
2.43.0