summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohit Agrawal <moagrawal@redhat.com>2019-01-22 18:01:40 +0530
committerAmar Tumballi <amarts@redhat.com>2019-01-23 03:16:08 +0000
commit86d4eac6c6f2d774a579ef134f6526f75504c46e (patch)
tree97ffe8ac21852d49caa44b05bf5fc30084fac32d
parent832f60d41d9a392e77e5b81e7a44a97003b7541f (diff)
posix: Change data type to dump nr_files to statedump
Problem: In commit 2261e444a47ffffb5d64305efceee1d5a734cd75 wrong data type of nr_files was changed to dump nr_files to statedump so build is failing on 32bit environment Solution: Change data type to avoid errors Change-Id: Ifb4b19feda6e0e56d110b23351e7a0efd5bfa29b fixes: bz#1657607 Signed-off-by: Mohit Agrawal <moagrawal@redhat.com>
-rw-r--r--xlators/storage/posix/src/posix-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix-common.c b/xlators/storage/posix/src/posix-common.c
index 961b6e871eb..f0d8e3fe0c2 100644
--- a/xlators/storage/posix/src/posix-common.c
+++ b/xlators/storage/posix/src/posix-common.c
@@ -128,7 +128,7 @@ posix_priv(xlator_t *this)
gf_proc_dump_write("max_read", "%" PRId64, GF_ATOMIC_GET(priv->read_value));
gf_proc_dump_write("max_write", "%" PRId64,
GF_ATOMIC_GET(priv->write_value));
- gf_proc_dump_write("nr_files", "%ld", GF_ATOMIC_GET(priv->nr_files));
+ gf_proc_dump_write("nr_files", "%" PRId64, GF_ATOMIC_GET(priv->nr_files));
return 0;
}