Cleanup: comp-logging.h: template `BT_COMP_OR_COMP_CLASS_LOG*` macros
This commit is motivated by the need to have the
`BT_COMP_OR_COMP_CLASS_LOGW_ERRNO()` logging macro in a future commit.
It adds the following template macros to simplify add logging macros for
other logging levels:
BT_COMP_OR_COMP_CLASS_LOG
BT_COMP_OR_COMP_CLASS_LOG_ERRNO
I didn't add the `BT_COMP_OR_COMP_CLASS_LOG_APPEND_CAUSE` template as
it's less likely that we will need it for logging levels other than
`BT_LOG_ERROR`.
Also, to be uniform across the file, I moved all the `_lvl` parameter to
the first position for all macros in this file.
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: Ifbce021eecc08f8fc994a8ac0f4174ae3e1df853
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2354
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
This page took 0.025178 seconds and 4 git commands to generate.