diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2013-04-19 17:20:07 -0400 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-02 00:18:57 -0400 |
commit | ac7f29bf2ee4a526efb68f947475ff77a43028de (patch) | |
tree | 1b9b82cb9020a81322f9e37e5057eac82002b81b /fs/ceph | |
parent | 1ac0fc8adfc725660ee53a953b06855f64f8e792 (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/ceph')
-rw-r--r-- | fs/ceph/file.c | 4 |
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: | |||
747 | goto out; | 747 | goto out; |
748 | } | 748 | } |
749 | 749 | ||
750 | dout("aio_write %p %llx.%llx %llu~%ld getting caps. i_size %llu\n", | 750 | dout("aio_write %p %llx.%llx %llu~%zd getting caps. i_size %llu\n", |
751 | inode, ceph_vinop(inode), pos, count, inode->i_size); | 751 | inode, ceph_vinop(inode), pos, count, inode->i_size); |
752 | if (fi->fmode & CEPH_FILE_MODE_LAZY) | 752 | if (fi->fmode & CEPH_FILE_MODE_LAZY) |
753 | want = CEPH_CAP_FILE_BUFFER | CEPH_CAP_FILE_LAZYIO; | 753 | want = CEPH_CAP_FILE_BUFFER | CEPH_CAP_FILE_LAZYIO; |
@@ -758,7 +758,7 @@ retry_snap: | |||
758 | if (err < 0) | 758 | if (err < 0) |
759 | goto out; | 759 | goto out; |
760 | 760 | ||
761 | dout("aio_write %p %llx.%llx %llu~%ld got cap refs on %s\n", | 761 | dout("aio_write %p %llx.%llx %llu~%zd got cap refs on %s\n", |
762 | inode, ceph_vinop(inode), pos, count, ceph_cap_string(got)); | 762 | inode, ceph_vinop(inode), pos, count, ceph_cap_string(got)); |
763 | 763 | ||
764 | if ((got & (CEPH_CAP_FILE_BUFFER|CEPH_CAP_FILE_LAZYIO)) == 0 || | 764 | if ((got & (CEPH_CAP_FILE_BUFFER|CEPH_CAP_FILE_LAZYIO)) == 0 || |