]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
torture: Fix the 32-bit build
authorVolker Lendecke <vl@samba.org>
Thu, 15 Nov 2018 14:21:36 +0000 (15:21 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 16 Nov 2018 16:13:21 +0000 (17:13 +0100)
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 <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
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)

Autobuild-User(v4-8-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-8-test): Fri Nov 16 17:13:21 CET 2018 on sn-devel-144

source4/torture/vfs/fruit.c

index 53db504619ba1b436c119324e67a92704e2d9503..e321b072da4e033d83ffcb60456b8fddcc28b743 100644 (file)
@@ -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");