Fix: cli: use BT_CLI_LOGE_APPEND_CAUSE instead of printf to print errors
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 25 Feb 2020 21:02:57 +0000 (16:02 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 26 Feb 2020 16:56:55 +0000 (11:56 -0500)
commit52ffe35392be0f1c9a7674aa7db9f925164268a9
treef3d2300ce068e08de03a55210c11fcb41fb36438
parent3982428dea5b8bef42289ecf927f8f41bd76e704
Fix: cli: use BT_CLI_LOGE_APPEND_CAUSE instead of printf to print errors

While fixing up the test cli/convert/test_convert_args, I noticed that
some error messages were printed on stdout, and not using error causes.
Indeed, they are printed directly using printf.

Change them to use BT_CLI_LOGE_APPEND_CAUSE.

This is tested by a following patch which updates
cli/convert/test_convert_args.

Change-Id: I18a901d50b643293dd806c1fbe7d2372dc8bd46f
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/3146
Tested-by: jenkins <jenkins@lttng.org>
src/cli/babeltrace2-cfg-cli-args.c
This page took 0.024559 seconds and 4 git commands to generate.