Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selftests/mm: fix gup_longterm EINVAL error message
@ 2026-07-24  6:59 zhaozhengzhuo
  2026-07-24  7:26 ` Sarthak Sharma
  2026-07-24  7:46 ` [PATCH v2] " zhaozhengzhuo
  0 siblings, 2 replies; 5+ messages in thread
From: zhaozhengzhuo @ 2026-07-24  6:59 UTC (permalink / raw)
  To: David Hildenbrand, Shuah Khan
  Cc: Andrew Morton, Jason Gunthorpe, John Hubbard, Peter Xu, linux-mm,
	linux-kselftest, linux-kernel, zhaozhengzhuo

The gup_longterm test prints a literal "n" when
PIN_LONGTERM_TEST_START fails with EINVAL because the string is missing the
newline escape sequence.

Print a newline instead.

Signed-off-by: zhaozhengzhuo <zhaozhengzhuo@uniontech.com>
---
 tools/testing/selftests/mm/gup_longterm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/mm/gup_longterm.c b/tools/testing/selftests/mm/gup_longterm.c
index eb8963e9d..c03b4f891 100644
--- a/tools/testing/selftests/mm/gup_longterm.c
+++ b/tools/testing/selftests/mm/gup_longterm.c
@@ -196,7 +196,7 @@ static void do_test(int fd, size_t size, enum test_type type, bool shared)
 		args.flags |= rw ? PIN_LONGTERM_TEST_FLAG_USE_WRITE : 0;
 		ret = ioctl(gup_fd, PIN_LONGTERM_TEST_START, &args);
 		if (ret && errno == EINVAL) {
-			ksft_print_msg("PIN_LONGTERM_TEST_START failed (EINVAL)n");
+			ksft_print_msg("PIN_LONGTERM_TEST_START failed (EINVAL)\n");
 			result = KSFT_SKIP;
 			break;
 		} else if (ret && errno == EFAULT) {

base-commit: c04df384b55dd9dcf72c36b661becb5aaba371a9
-- 
2.51.0



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

end of thread, other threads:[~2026-07-24 19:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-24  6:59 [PATCH] selftests/mm: fix gup_longterm EINVAL error message zhaozhengzhuo
2026-07-24  7:26 ` Sarthak Sharma
2026-07-24  7:46 ` [PATCH v2] " zhaozhengzhuo
2026-07-24  8:22   ` Dev Jain
2026-07-24 19:02   ` David Hildenbrand (Arm)

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