From 7ad75da5e8cb57336380f688650547275b939c3a Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Wed, 21 Jul 2010 04:23:15 +0000 Subject: cli: fix consistent behaviour with newlines in cli_out() Signed-off-by: Anand V. Avati Signed-off-by: Anand V. Avati BUG: 971 (dynamic volume management) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971 --- cli/src/cli.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cli/src/cli.c') 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 * -- cgit