summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-11-02 17:10:12 +0000
committerTim Potter <tpot@samba.org>2003-11-02 17:10:12 +0000
commitc8e84154af5027f1c20329597851d451764f4869 (patch)
treed7384e1ef4406db3596b5146035acd81ba8436ec /source3
parentdb2a7d0a7f1a3f7086ca2b44a1d9f69bbd1a35f0 (diff)
downloadsamba-c8e84154af5027f1c20329597851d451764f4869.tar.gz
samba-c8e84154af5027f1c20329597851d451764f4869.tar.bz2
samba-c8e84154af5027f1c20329597851d451764f4869.zip
Printf fixes for 64-bit size_t.
(This used to be commit 8e2c543ebf65e24e73433f69b1c281e1558e9080)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/fileio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/fileio.c b/source3/smbd/fileio.c
index 6cf7014846..84339c3a6f 100644
--- a/source3/smbd/fileio.c
+++ b/source3/smbd/fileio.c
@@ -707,8 +707,8 @@ static BOOL setup_write_cache(files_struct *fsp, SMB_OFF_T file_size)
DO_PROFILE_INC(writecache_allocated_write_caches);
allocated_write_caches++;
- DEBUG(10,("setup_write_cache: File %s allocated write cache size %u\n",
- fsp->fsp_name, wcp->alloc_size ));
+ DEBUG(10,("setup_write_cache: File %s allocated write cache size %lu\n",
+ fsp->fsp_name, (unsigned long)wcp->alloc_size ));
return True;
}
@@ -725,7 +725,7 @@ void set_filelen_write_cache(files_struct *fsp, SMB_OFF_T file_size)
if (fsp->wcp->data_size != 0) {
pstring msg;
slprintf(msg, sizeof(msg)-1, "set_filelen_write_cache: size change \
-on file %s with write cache size = %u\n", fsp->fsp_name, fsp->wcp->data_size );
+on file %s with write cache size = %lu\n", fsp->fsp_name, (unsigned long)fsp->wcp->data_size );
smb_panic(msg);
}
fsp->wcp->file_size = file_size;