* SOFTWARE.
*/
-#define BT_LOG_TAG "PLUGIN-UTILS-COUNTER-FLT"
-#include "logging.h"
+#define BT_LOG_OUTPUT_LEVEL (counter->log_level)
+#define BT_LOG_TAG "PLUGIN/FLT.UTILS.COUNTER"
+#include "logging/log.h"
#include <babeltrace2/babeltrace.h>
#include "common/macros.h"
#include "common/common.h"
-#include "plugins/plugins-common.h"
#include "common/assert.h"
#include <inttypes.h>
#include <stdint.h>
bt_self_component_status counter_init(
bt_self_component_sink *component,
const bt_value *params,
- UNUSED_VAR void *init_method_data)
+ __attribute__((unused)) void *init_method_data)
{
bt_self_component_status ret;
struct counter *counter = g_new0(struct counter, 1);
goto error;
}
+ counter->log_level = bt_component_get_logging_level(
+ bt_self_component_as_component(
+ bt_self_component_sink_as_self_component(component)));
ret = bt_self_component_sink_add_input_port(component,
"in", NULL, NULL);
if (ret != BT_SELF_COMPONENT_STATUS_OK) {