path: root/cli
diff options
authorKaushal M <>2012-03-14 18:28:09 +0530
committerVijay Bellur <>2012-03-14 09:51:13 -0700
commitbf65ae4fef113d78b7555db8520cd9f64817eda2 (patch)
tree5ded3baa3a34ef67724b6b1d7769aa71be44335c /cli
parent160ff641157359dc60d1a37652ef449b3c21ebad (diff)
glusterd: Fix brick op to prevent glusterd crashing
Was building payload only for node types GD_NODE_BRICK & GD_NODE_NFS. Payload wasn't being built for nodes GD_NODE_SHD & GD_NODE_REBALANCE, which made glusterd crash when those operations were performed. Also fix a compile warning. Change-Id: Id33e21c84901d4d112c54514b7f16add31aeb950 BUG: 803313 Signed-off-by: Kaushal M <> Reviewed-on: Tested-by: Gluster Build System <> Reviewed-by: Shishir Gowda <>
Diffstat (limited to 'cli')
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c
index dbef04a..c47c08e 100644
--- a/cli/src/cli-rpc-ops.c
+++ b/cli/src/cli-rpc-ops.c
@@ -3786,9 +3786,9 @@ gf_cli3_1_profile_volume_cbk (struct rpc_req *req, struct iovec *iov,
snprintf (str, sizeof (str), "NFS Server : %s", brick);
snprintf (str, sizeof (str), "Brick: %s", brick);
- cli_out (str);
+ cli_out ("%s", str);
memset (str, '-', strlen (str));
- cli_out (str);
+ cli_out ("%s", str);
snprintf (key, sizeof (key), "%d-cumulative", i);
ret = dict_get_int32 (dict, key, &interval);