Also, cleanup an extra whitespace.
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I7916ededcde363e6d3c7ae2eec417eedb7c1851a
} else if (q_event_name == debug_info->q_statedump_build_id) {
/* Build ID info */
handle_event_statedump_build_id(debug_info, event);
} else if (q_event_name == debug_info->q_statedump_build_id) {
/* Build ID info */
handle_event_statedump_build_id(debug_info, event);
- } else if (q_event_name == debug_info-> q_lib_unload) {
+ } else if (q_event_name == debug_info->q_lib_unload) {
handle_event_lib_unload(debug_info, event);
}
handle_event_lib_unload(debug_info, event);
}
* Babeltrace - Debug info utilities
*/
* Babeltrace - Debug info utilities
*/
#include <string.h>
#include <babeltrace2/babeltrace.h>
#include <string.h>
#include <babeltrace2/babeltrace.h>
-bt_bool is_event_common_ctx_dbg_info_compatible(const bt_field_class *in_field_class,
+bool is_event_common_ctx_dbg_info_compatible(const bt_field_class *in_field_class,
const char *debug_info_field_class_name)
{
const bt_field_class_structure_member *member;
const bt_field_class *ip_fc, *vpid_fc;
const char *debug_info_field_class_name)
{
const bt_field_class_structure_member *member;
const bt_field_class *ip_fc, *vpid_fc;
- bt_bool match = BT_FALSE;
/*
* If the debug info field is already present in the event common
* context. Do not try to add it.
*/
/*
* If the debug info field is already present in the event common
* context. Do not try to add it.
*/
- member =
- bt_field_class_structure_borrow_member_by_name_const(
+ member = bt_field_class_structure_borrow_member_by_name_const(
in_field_class, debug_info_field_class_name);
if (member) {
goto end;
in_field_class, debug_info_field_class_name);
if (member) {
goto end;
member);
if (bt_field_class_get_type(ip_fc) !=
BT_FIELD_CLASS_TYPE_UNSIGNED_INTEGER) {
member);
if (bt_field_class_get_type(ip_fc) !=
BT_FIELD_CLASS_TYPE_UNSIGNED_INTEGER) {
vpid_fc = bt_field_class_structure_member_borrow_field_class_const(
member);
vpid_fc = bt_field_class_structure_member_borrow_field_class_const(
member);
if (bt_field_class_get_type(vpid_fc) !=
BT_FIELD_CLASS_TYPE_SIGNED_INTEGER) {
goto end;
if (bt_field_class_get_type(vpid_fc) !=
BT_FIELD_CLASS_TYPE_SIGNED_INTEGER) {
goto end;
#ifndef BABELTRACE_PLUGIN_DEBUG_INFO_UTILS_H
#define BABELTRACE_PLUGIN_DEBUG_INFO_UTILS_H
#ifndef BABELTRACE_PLUGIN_DEBUG_INFO_UTILS_H
#define BABELTRACE_PLUGIN_DEBUG_INFO_UTILS_H
#include <babeltrace2/babeltrace.h>
#include "common/macros.h"
#include <babeltrace2/babeltrace.h>
#include "common/macros.h"
const char *get_filename_from_path(const char *path);
BT_HIDDEN
const char *get_filename_from_path(const char *path);
BT_HIDDEN
-bt_bool is_event_common_ctx_dbg_info_compatible(
+bool is_event_common_ctx_dbg_info_compatible(
const bt_field_class *in_field_class,
const char *debug_info_field_class_name);
const bt_field_class *in_field_class,
const char *debug_info_field_class_name);