summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cli/src/cli-rpc-ops.c6
-rw-r--r--xlators/features/marker/src/marker-quota.c13
2 files changed, 12 insertions, 7 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c
index c358192d2..ff568f63c 100644
--- a/cli/src/cli-rpc-ops.c
+++ b/cli/src/cli-rpc-ops.c
@@ -1378,8 +1378,10 @@ print_limit_list (char *volname, char *limit_list)
if (ret < 0) {
cli_out ("%-20s %10s", path, value);
} else {
- sscanf (ret_str, "%ld,%ld", &size, &limit_value);
- cli_out ("%-20s %10ld %20ld", path, limit_value, size);
+ sscanf (ret_str, "%"PRId64",%"PRId64, &size,
+ &limit_value);
+ cli_out ("%-20s %10"PRId64" %20"PRId64, path,
+ limit_value, size);
}
i++;
}
diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c
index 4d5fed66e..16139fc24 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);