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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 18 Jul 2019 15:53:34 +0000 (11:53 -0400)
commit2e46a0d001daa310596d8c634b032f6bbef29be2
tree643fff244d606aa01e7abe504c3a82addbb980b0
parenta651b97cb90132e9e15243bc6e01d5b93c620819
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.025713 seconds and 4 git commands to generate.