summaryrefslogtreecommitdiffstats
path: root/cli/src/cli3_1-cops.c
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2010-07-21 04:23:15 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-07-21 03:00:26 -0700
commit7ad75da5e8cb57336380f688650547275b939c3a (patch)
tree35eb77c9cccafb3929e96c04277875d25afc6214 /cli/src/cli3_1-cops.c
parent066778ac7994bb574bd49281e8b225c3cd378f44 (diff)
cli: fix consistent behaviour with newlines in cli_out()
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 971 (dynamic volume management) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
Diffstat (limited to 'cli/src/cli3_1-cops.c')
-rw-r--r--cli/src/cli3_1-cops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/src/cli3_1-cops.c b/cli/src/cli3_1-cops.c
index 1f9feeac0b8..dc9241bc60a 100644
--- a/cli/src/cli3_1-cops.c
+++ b/cli/src/cli3_1-cops.c
@@ -178,7 +178,7 @@ gf_cli3_1_list_friends_cbk (struct rpc_req *req, struct iovec *iov,
if (ret)
goto out;
- cli_out ("hostname:%s, port:%d, uuid:%s, state:%d\n",
+ cli_out ("hostname:%s, port:%d, uuid:%s, state:%d",
hostname_buf, port, uuid_buf, state);
i++;
}
@@ -192,7 +192,7 @@ gf_cli3_1_list_friends_cbk (struct rpc_req *req, struct iovec *iov,
out:
if (ret)
- cli_out ("Command Execution Failed\n");
+ cli_out ("Command Execution Failed");
if (dict)
dict_destroy (dict);
@@ -285,7 +285,7 @@ gf_cli3_1_get_volume_cbk (struct rpc_req *req, struct iovec *iov,
goto out;
cli_out ("Volume Name:%s, type:%d, status:%d,"
- "brick_count: %d\n",
+ "brick_count: %d",
volname, type, status, brick_count);
i++;
}
@@ -300,7 +300,7 @@ gf_cli3_1_get_volume_cbk (struct rpc_req *req, struct iovec *iov,
out:
cli_cmd_broadcast_response ();
if (ret)
- cli_out ("Command Execution Failed\n");
+ cli_out ("Command Execution Failed");
if (dict)
dict_destroy (dict);