[PATCH] Fix the 32-bit build

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu Nov 15 14:25:02 UTC 2018


Hi!

Review appreciated!

Thanks, Volker

-- 
Besuchen Sie die verinice.XP 2019 in Berlin!
Anwenderkonferenz für Informationssicherheit
26.-28. Februar 2019 - im Hotel Radisson Blu
Info & Anmeldung hier: http://veriniceXP.org

SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
-------------- next part --------------
From bcdc535facc043211c64aa0f9152df4c92db6192 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
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 <vl at samba.org>
---
 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.11.0



More information about the samba-technical mailing list