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 --- api/src/glfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api') diff --git a/api/src/glfs.c b/api/src/glfs.c index e74329caf9d..12c4ea4aebb 100644 --- a/api/src/glfs.c +++ b/api/src/glfs.c @@ -872,13 +872,13 @@ pub_glfs_get_volfile (struct glfs *fs, void *buf, size_t len) glfs_lock(fs); if (len >= fs->oldvollen) { - gf_log ("glfs", GF_LOG_TRACE, "copying %lu to %p", len, buf); + gf_log ("glfs", GF_LOG_TRACE, "copying %zu to %p", len, buf); memcpy(buf,fs->oldvolfile,len); res = len; } else { res = len - fs->oldvollen; - gf_log ("glfs", GF_LOG_TRACE, "buffer is %ld too short", -res); + gf_log ("glfs", GF_LOG_TRACE, "buffer is %zd too short", -res); } glfs_unlock(fs); -- cgit