diff options
| -rw-r--r-- | cli/src/cli.c | 2 | ||||
| -rw-r--r-- | cli/src/cli.h | 10 | 
2 files changed, 10 insertions, 2 deletions
diff --git a/cli/src/cli.c b/cli/src/cli.c index 93fcd620431..491c11b4434 100644 --- a/cli/src/cli.c +++ b/cli/src/cli.c @@ -468,7 +468,7 @@ cli_usage_out (const char *usage)  }  int -cli_out (const char *fmt, ...) +_cli_out (const char *fmt, ...)  {          struct cli_state *state = NULL;          va_list           ap; diff --git a/cli/src/cli.h b/cli/src/cli.h index c81ae47e5cd..36e9e2134aa 100644 --- a/cli/src/cli.h +++ b/cli/src/cli.h @@ -166,7 +166,15 @@ int cli_rl_enable (struct cli_state *state);  int cli_rl_out (struct cli_state *state, const char *fmt, va_list ap);  int cli_usage_out (const char *usage); -int cli_out (const char *fmt, ...); + +int _cli_out (const char *fmt, ...); + +#define cli_out(fmt...) do {                       \ +                FMT_WARN (fmt);                    \ +                                                   \ +                _cli_out(fmt);                     \ +                                                   \ +        } while (0)  int  cli_submit_request (void *req, call_frame_t *frame,  | 
