From: Volker Lendecke Date: Thu, 15 Nov 2018 14:21:36 +0000 (+0100) Subject: torture: Fix the 32-bit build X-Git-Tag: tdb-1.3.17~750 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0872f140c4a354511b25bb5ed937b9e9409ade3a;p=thirdparty%2Fsamba.git 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 --- 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");