From c147c36a70505ff239cef48030422840abd3fbcd Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Wed, 18 Jun 2014 14:46:05 -0400 Subject: core: fix remaining *printf formation warnings on 32-bit This fixes a few lingering size_t problems. Of particular note are some uses of off_t for size params in function calls. There is no correct, _portable_ way to correctly print an off_t. The best you can do is use a scratch int64_t/PRId64 or uint64_t/PRIu64. Change-Id: I86f3cf4678c7dbe5cad156ae8d540a66545f000d BUG: 1110916 Signed-off-by: Kaleb S. KEITHLEY Reviewed-on: http://review.gluster.org/8105 Tested-by: Gluster Build System Reviewed-by: Harshavardhana Reviewed-by: Raghavendra Bhat Reviewed-by: Niels de Vos Reviewed-by: Vijay Bellur --- xlators/mount/fuse/src/fuse-bridge.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'xlators/mount/fuse') diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index 97031e82733..1404b148bd5 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -289,7 +289,7 @@ fuse_invalidate_entry (xlator_t *this, uint64_t fuse_ino) dentry->name, uuid_utoa (dentry->parent->gfid)); } else { - fuse_log_eh (this, "Invalidated entry %s(nodeid: %ld)", + fuse_log_eh (this, "Invalidated entry %s(nodeid: %" PRIu64 ")", dentry->name, fnieo->parent); } } @@ -341,13 +341,14 @@ fuse_invalidate_inode(xlator_t *this, uint64_t fuse_ino) close(priv->fd); } - gf_log("glusterfs-fuse", GF_LOG_TRACE, "INVALIDATE inode: %lu", fuse_ino); + gf_log ("glusterfs-fuse", GF_LOG_TRACE, "INVALIDATE inode: %" PRIu64, + fuse_ino); if (inode) { - fuse_log_eh (this, "Invalidated inode %lu (gfid: %s)", + fuse_log_eh (this, "Invalidated inode %" PRIu64 " (gfid: %s)", fuse_ino, uuid_utoa (inode->gfid)); } else { - fuse_log_eh (this, "Invalidated inode %lu ", fuse_ino); + fuse_log_eh (this, "Invalidated inode %" PRIu64, fuse_ino); } if (inode) -- cgit