Skip to contentSkip to conversation

syscalls/sendfile06: Fix format string

PATCH New Cyril Hrubis 1 participant 1 message Jun 30, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 syscalls/sendfile06: Fix format string

There cannot be any characters between "%" and PRId64 since these two when concatenated produce the format string for the 64bit integer that follows.

---
 testcases/kernel/syscalls/sendfile/sendfile06.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/syscalls/sendfile/sendfile06.c +1 -1
index b504f1805..6133be4d0 100644
@@ -54,7 +54,7 @@ static void run(void)
 			sb.st_size, TST_RET);
 	else if (after_pos != sb.st_size)
 		tst_res(TFAIL, "sendfile() updated the file position of in_fd unexpectedly,"
-			" expected file position: %," PRId64
+			" expected file position: %" PRId64
 			" actual file position %" PRId64,
 			(int64_t)(sb.st_size), (int64_t)(after_pos));
 	else
Signature · 1 line
2.31.1