summaryrefslogtreecommitdiffstats
path: root/cli/src
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2011-04-05 09:02:53 +0000
committerVijay Bellur <vijay@gluster.com>2011-04-06 10:51:55 -0700
commit282109ed02a1ad220027bc69398941ba2b115cd2 (patch)
treede09861b3c09f22fd7cb034f4c516fca01fdcfb5 /cli/src
parent322ed6812d9a5b3c975b5c949ff5adfd16d40eb4 (diff)
features/marker, cli: use appropriate conversion specifiers.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Vijay Bellur <vijay@gluster.com> BUG: 2649 (Quota: size field is not getting updated properly) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2649
Diffstat (limited to 'cli/src')
-rw-r--r--cli/src/cli-rpc-ops.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c
index c358192d2fa..ff568f63c2f 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++;
}