Fix some warnings in the tsmsm module
authorVolker Lendecke <vl@samba.org>
Thu, 20 Mar 2008 11:49:13 +0000 (12:49 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 20 Mar 2008 15:54:05 +0000 (16:54 +0100)
Alexander, please check!

source/modules/vfs_tsmsm.c

index 791e8cfcd0662026d9ab8dd4bebe7433344a44f1..aa0f945df1cb6ab6de2a554a9cb956d1f29c66da 100644 (file)
@@ -148,8 +148,9 @@ static bool tsmsm_is_offline(struct vfs_handle_struct *handle,
         /* if the file has more than FILE_IS_ONLINE_RATIO of blocks available,
           then assume it is not offline (it may not be 100%, as it could be sparse) */
        if (512 * (off_t)stbuf->st_blocks >= stbuf->st_size * tsmd->online_ratio) {
-               DEBUG(10,("%s not offline: st_blocks=%ld st_size=%ld online_ratio=%.2f\n", 
-                         path, stbuf->st_blocks, stbuf->st_size, tsmd->online_ratio));
+               DEBUG(10,("%s not offline: st_blocks=%ld st_size=%ld "
+                         "online_ratio=%.2f\n", path, (long)stbuf->st_blocks,
+                         (long)stbuf->st_size, tsmd->online_ratio));
                return false;
        }
 
@@ -226,8 +227,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", 
-                         sbuf.st_blocks, sbuf.st_size, tsmd->online_ratio));
+               DEBUG(10,("tsmsm_aio_force st_blocks=%ld st_size=%ld "
+                         "online_ratio=%.2f\n", (long)sbuf.st_blocks,
+                         (long)sbuf.st_size, tsmd->online_ratio));
                return !(512 * (off_t)sbuf.st_blocks >= sbuf.st_size * tsmd->online_ratio);
        }
        return false;