cpp-common/bt2c: add `BT_CPPLOGE_ERRNO_APPEND_CAUSE_SPEC`
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 3 Apr 2024 16:05:13 +0000 (12:05 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 17 Apr 2024 17:57:53 +0000 (13:57 -0400)
commit2f505dde81e79fab65451fc32338f3b2184d5485
tree281edd259a3b56449fa493ee9de27541064db4da
parentaa37512cfaa07ebb389c1bbda1a74b83c0f73b7f
cpp-common/bt2c: add `BT_CPPLOGE_ERRNO_APPEND_CAUSE_SPEC`

Add the `BT_CPPLOGE_ERRNO_APPEND_CAUSE_SPEC` macro, allowing to log an
error and append an error cause based on `errno`, without throwing.

Change-Id: I5837ef4b78a6d89b5574072f23d4aba6665e6bb4
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12232
Tested-by: jenkins <jenkins@lttng.org>
src/cpp-common/bt2c/logging.hpp
This page took 0.024179 seconds and 4 git commands to generate.