[PATCH] vfs_fruit: Fix the 32-bit build

Volker Lendecke Volker.Lendecke at SerNet.DE
Sat Jul 11 11:47:11 UTC 2015


Hi!

Review&push appreciated!

Thanks,

Volker

-- 
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 b8ba9693a47cbd9dfbc0a628ac45c7437f7b2834 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Sat, 11 Jul 2015 13:44:05 +0200
Subject: [PATCH] vfs_fruit: Fix the 32-bit build

"z" is only for size_t, here we have off_t

Signed-off-by: Volker Lendecke <vl at samba.org>
---
 source3/modules/vfs_fruit.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c
index e29440b..8ac4ba1 100644
--- a/source3/modules/vfs_fruit.c
+++ b/source3/modules/vfs_fruit.c
@@ -3511,8 +3511,8 @@ static struct tevent_req *fruit_copy_chunk_send(struct vfs_handle_struct *handle
 	struct fruit_config_data *config;
 	off_t to_copy = num;
 
-	DEBUG(10,("soff: %zd, doff: %zd, len: %zd\n",
-		  src_off, dest_off, num));
+	DEBUG(10,("soff: %ju, doff: %ju, len: %ju\n",
+		  (uintmax_t)src_off, (uintmax_t)dest_off, (uintmax_t)num));
 
 	SMB_VFS_HANDLE_GET_DATA(handle, config,
 				struct fruit_config_data,
@@ -3607,8 +3607,9 @@ static void fruit_copy_chunk_done(struct tevent_req *subreq)
 	}
 
 	for (i = 0; i < num_streams; i++) {
-		DEBUG(10, ("%s: stream: '%s'/%zd\n",
-			  __func__, streams[i].name, streams[i].size));
+		DEBUG(10, ("%s: stream: '%s'/%ju\n",
+			   __func__, streams[i].name,
+			   (uintmax_t)streams[i].size));
 
 		src_fname_tmp = synthetic_smb_fname(
 			req,
-- 
1.9.1



More information about the samba-technical mailing list