summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-11-17 17:45:01 +0100
committerBjoern Jacke <bj@sernet.de>2010-11-18 14:03:19 +0000
commitd5d08d3b50592f8950ab68c654b2116e704d0f30 (patch)
tree0593864ca5859e3c839680d5436b68cb3f5a3052
parent0b3180bbf5933943cf0c5b0e9d47da33cf4ff99c (diff)
downloadsamba-d5d08d3b50592f8950ab68c654b2116e704d0f30.tar.gz
samba-d5d08d3b50592f8950ab68c654b2116e704d0f30.tar.xz
samba-d5d08d3b50592f8950ab68c654b2116e704d0f30.zip
s3/vfs_tsmsm: fix debug output for large files
-rw-r--r--source3/modules/vfs_tsmsm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/modules/vfs_tsmsm.c b/source3/modules/vfs_tsmsm.c
index 12f79ff71e8..c11e896daa0 100644
--- a/source3/modules/vfs_tsmsm.c
+++ b/source3/modules/vfs_tsmsm.c
@@ -163,10 +163,10 @@ static bool tsmsm_is_offline(struct vfs_handle_struct *handle,
then assume it is not offline (it may not be 100%, as it could be sparse) */
if (512 * (off_t)stbuf->st_ex_blocks >=
stbuf->st_ex_size * tsmd->online_ratio) {
- DEBUG(10,("%s not offline: st_blocks=%ld st_size=%ld "
+ DEBUG(10,("%s not offline: st_blocks=%llu st_size=%llu "
"online_ratio=%.2f\n", path,
- (long)stbuf->st_ex_blocks,
- (long)stbuf->st_ex_size, tsmd->online_ratio));
+ (unsigned long long)stbuf->st_ex_blocks,
+ (unsigned long long)stbuf->st_ex_size, tsmd->online_ratio));
return false;
}
@@ -263,9 +263,9 @@ static bool tsmsm_aio_force(struct vfs_handle_struct *handle, struct files_struc
if the file might be offline
*/
if(SMB_VFS_FSTAT(fsp, &sbuf) == 0) {
- DEBUG(10,("tsmsm_aio_force st_blocks=%ld st_size=%ld "
- "online_ratio=%.2f\n", (long)sbuf.st_ex_blocks,
- (long)sbuf.st_ex_size, tsmd->online_ratio));
+ DEBUG(10,("tsmsm_aio_force st_blocks=%llu st_size=%llu "
+ "online_ratio=%.2f\n", (unsigned long long)sbuf.st_ex_blocks,
+ (unsigned long long)sbuf.st_ex_size, tsmd->online_ratio));
return !(512 * (off_t)sbuf.st_ex_blocks >=
sbuf.st_ex_size * tsmd->online_ratio);
}