summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2013-04-19 14:20:07 -0700
committerSage Weil <sage@inktank.com>2013-05-01 21:18:57 -0700
commitac7f29bf2ee4a526efb68f947475ff77a43028de (patch)
tree1b9b82cb9020a81322f9e37e5057eac82002b81b /fs
parent1ac0fc8adfc725660ee53a953b06855f64f8e792 (diff)
ceph: fix printk format warnings in file.c
Fix printk format warnings by using %zd for 'ssize_t' variables: fs/ceph/file.c:751:2: warning: format '%ld' expects argument of type 'long int', but argument 11 has type 'ssize_t' [-Wformat] fs/ceph/file.c:762:2: warning: format '%ld' expects argument of type 'long int', but argument 11 has type 'ssize_t' [-Wformat] Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: ceph-devel@vger.kernel.org Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/ceph/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index c639d9279fdd..7e94dcb66d92 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -747,7 +747,7 @@ retry_snap:
goto out;
}
- dout("aio_write %p %llx.%llx %llu~%ld getting caps. i_size %llu\n",
+ dout("aio_write %p %llx.%llx %llu~%zd getting caps. i_size %llu\n",
inode, ceph_vinop(inode), pos, count, inode->i_size);
if (fi->fmode & CEPH_FILE_MODE_LAZY)
want = CEPH_CAP_FILE_BUFFER | CEPH_CAP_FILE_LAZYIO;
@@ -758,7 +758,7 @@ retry_snap:
if (err < 0)
goto out;
- dout("aio_write %p %llx.%llx %llu~%ld got cap refs on %s\n",
+ dout("aio_write %p %llx.%llx %llu~%zd got cap refs on %s\n",
inode, ceph_vinop(inode), pos, count, ceph_cap_string(got));
if ((got & (CEPH_CAP_FILE_BUFFER|CEPH_CAP_FILE_LAZYIO)) == 0 ||