summaryrefslogtreecommitdiffstats
path: root/cli/src/cli.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/cli.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/cli.c')
-rw-r--r--cli/src/cli.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/src/cli.c b/cli/src/cli.c
index 5bf32ec894c..b31e9feda45 100644
--- a/cli/src/cli.c
+++ b/cli/src/cli.c
@@ -368,6 +368,7 @@ cli_out (const char *fmt, ...)
{
struct cli_state *state = NULL;
va_list ap;
+ int ret = 0;
state = global_state;
@@ -378,7 +379,10 @@ cli_out (const char *fmt, ...)
return cli_rl_out(state, fmt, ap);
#endif
- return vprintf (fmt, ap);
+ ret = vprintf (fmt, ap);
+ printf ("\n");
+
+ return ret;
}
struct rpc_clnt *