diff options
Diffstat (limited to 'cli/src/cli.h')
-rw-r--r-- | cli/src/cli.h | 10 |
1 files changed, 9 insertions, 1 deletions
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, |