cli: introduce BT_CLI_LOG*_APPEND_CAUSE() and use it where appropriate
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 3 Jul 2019 07:17:37 +0000 (03:17 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 6 Jul 2019 03:47:50 +0000 (23:47 -0400)
commitcee051052f3f3cd96a2eca5cbd9be7b4face0676
tree316a86ea397ee8f30b04c9ca9b31aec608a2fd8f
parent758932ce2630ba83f7308b8b0014be082ed959fa
cli: introduce BT_CLI_LOG*_APPEND_CAUSE() and use it where appropriate

BT_CLI_LOGE_APPEND_CAUSE() and BT_CLI_LOGW_APPEND_CAUSE() are internal
CLI macros which log and append an error cause with the same message,
using "Babeltrace CLI" as the cause's module name.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I2202ce81582860247232cd3aeea82aa3561e1227
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1616
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
src/cli/babeltrace2.c
src/cli/logging.h
This page took 0.025887 seconds and 4 git commands to generate.