From 282109ed02a1ad220027bc69398941ba2b115cd2 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Tue, 5 Apr 2011 09:02:53 +0000 Subject: features/marker, cli: use appropriate conversion specifiers. Signed-off-by: Raghavendra G Signed-off-by: Vijay Bellur BUG: 2649 (Quota: size field is not getting updated properly) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2649 --- xlators/features/marker/src/marker-quota.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'xlators/features/marker/src/marker-quota.c') diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c index 4d5fed66e9a..16139fc24f8 100644 --- a/xlators/features/marker/src/marker-quota.c +++ b/xlators/features/marker/src/marker-quota.c @@ -210,9 +210,10 @@ update_size_xattr (call_frame_t *frame, void *cookie, xlator_t *this, *delta = ntoh64 (ntoh64 (*size) - local->sum); - gf_log (this->name, GF_LOG_DEBUG, "calculated size = %ld, original size = %ld" - "path = %s diff = %ld", local->sum, ntoh64 (*size), - local->loc.path, ntoh64 (*delta)); + gf_log (this->name, GF_LOG_DEBUG, "calculated size = %"PRId64", " + "original size = %"PRIu64 + " path = %s diff = %"PRIu64, local->sum, ntoh64 (*size), + local->loc.path, ntoh64 (*delta)); new_dict = dict_new (); if (!new_dict); @@ -463,9 +464,11 @@ quota_readdir_cbk (call_frame_t *frame, break; } } - gf_log (this->name, GF_LOG_INFO, "offset before =%lu",local->d_off); + gf_log (this->name, GF_LOG_INFO, "offset before =%"PRIu64, + local->d_off); local->d_off +=offset; - gf_log (this->name, GF_LOG_INFO, "offset after = %lu",local->d_off); + gf_log (this->name, GF_LOG_INFO, "offset after = %"PRIu64, + local->d_off); if (ret) release_lock_on_dirty_inode (frame, NULL, this, 0, 0); -- cgit