From acebd5e6d6be81a2a6ebe6a0eefa0f10f1cf7f15 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 15 Nov 2018 15:21:36 +0100 Subject: [PATCH] torture: Fix the 32-bit build Unfortunately there's no off_t printf specifier as there's one for size_t. So we have to use intmax_t. Signed-off-by: Volker Lendecke Reviewed-by: Andreas Schneider Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Thu Nov 15 19:45:24 CET 2018 on sn-devel-144 BUG: https://bugzilla.samba.org/show_bug.cgi?id=13677 (cherry picked from commit 0872f140c4a354511b25bb5ed937b9e9409ade3a) --- source4/torture/vfs/fruit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/torture/vfs/fruit.c b/source4/torture/vfs/fruit.c index c532afab729..3b01cf876d0 100644 --- a/source4/torture/vfs/fruit.c +++ b/source4/torture/vfs/fruit.c @@ -4727,9 +4727,9 @@ static bool test_writing_afpinfo(struct torture_context *tctx, size_t fi_check_size; torture_comment(tctx, - "Test %d: offset=%zd size=%zu result=%s\n", + "Test %d: offset=%jd size=%zu result=%s\n", i, - test_sizes[i].offset, + (intmax_t)test_sizes[i].offset, test_sizes[i].size, test_sizes[i].expected_result ? "true":"false"); -- 2.17.1