sink.text.pretty: update logging macros
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 14 Apr 2020 17:02:00 +0000 (13:02 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 15 Apr 2020 00:26:26 +0000 (20:26 -0400)
commita8e4caa0f4d3c068ea38a09c62156cb54462698c
tree54c2bd1dedb144a01b74bd494116124be55986d5
parent440ffe5943780574bfe1232e8fbe2693f4256eac
sink.text.pretty: update logging macros

Change the logging macros to be more in sync with how it's done in other
component classes of the project

Add the `self_comp` and `log_level` fields to the pretty_component
structure, and change the BT_COMP_LOG_SELF_COMP and BT_LOG_OUTPUT_LEVEL
to assume there's always a pointer to such a structure named `pretty`.

Change-Id: I6292f3c9b6b7f238e335cfcc90259a1f0047313d
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/3405
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
src/plugins/text/pretty/pretty.c
src/plugins/text/pretty/pretty.h
This page took 0.026202 seconds and 4 git commands to generate.