#define BT_LOG_TAG "PLUGIN/FLT.LTTNG-UTILS.DEBUG-INFO"
#include "logging/comp-logging.h"
+#include <stdbool.h>
+
#include <glib.h>
#include "common/assert.h"
int ret;
struct debug_info_source *debug_info_src = NULL;
struct source_location *src_loc = NULL;
- bt_logging_level log_level = bin->log_level;
+ bt_logging_level log_level;
+
+ BT_ASSERT(bin);
+
+ log_level = bin->log_level;
debug_info_src = g_new0(struct debug_info_source, 1);
return;
}
+static
void trace_debug_info_remove_func(const bt_trace *in_trace, void *data)
{
struct debug_info_msg_iter *debug_it = data;
out_message = handle_discarded_packets_message(debug_it, in_message);
break;
default:
- abort();
+ bt_common_abort();
break;
}