torture: Fix the 32-bit build
authorVolker Lendecke <vl@samba.org>
Thu, 15 Nov 2018 14:21:36 +0000 (15:21 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 15 Nov 2018 18:45:24 +0000 (19:45 +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

source4/torture/vfs/fruit.c

index c532afab7290033a47cbd87979c7694c2468c5aa..3b01cf876d083aeaabfdbf1206f1e99b843d2780 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");