vfs_fruit: Fix the 32-bit build
authorVolker Lendecke <vl@samba.org>
Sat, 11 Jul 2015 11:44:05 +0000 (13:44 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 13 Jul 2015 09:53:47 +0000 (11:53 +0200)
"z" is only for size_t, here we have off_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): Mon Jul 13 11:53:47 CEST 2015 on sn-devel-104

source3/modules/vfs_fruit.c

index e29440b72432ec0a3907073649469de56ced2fba..8ac4ba1f5b6bc8b8f1824351194646deb4a44b89 100644 (file)
@@ -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,