X-Git-Url: https://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fplugins%2Flttng-utils%2Fdebug-info%2Futils.c;h=0042e8aab7af7cbb9d118b1185b462ee4840bced;hp=b066ea48509891255d3ed70995dbfe584514f9ef;hb=5b5c34865c6b97850ce780f804f4e4842e58608a;hpb=d6641c890cd38d0c43a84fd54ccf3c10de88a56b diff --git a/src/plugins/lttng-utils/debug-info/utils.c b/src/plugins/lttng-utils/debug-info/utils.c index b066ea48..0042e8aa 100644 --- a/src/plugins/lttng-utils/debug-info/utils.c +++ b/src/plugins/lttng-utils/debug-info/utils.c @@ -6,6 +6,7 @@ * Babeltrace - Debug info utilities */ +#include #include #include @@ -41,19 +42,18 @@ end: } BT_HIDDEN -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; - bt_bool match = BT_FALSE; + bool match = false; /* * 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; @@ -73,7 +73,6 @@ bt_bool is_event_common_ctx_dbg_info_compatible(const bt_field_class *in_field_c member); if (bt_field_class_get_type(ip_fc) != BT_FIELD_CLASS_TYPE_UNSIGNED_INTEGER) { - match = BT_FALSE; goto end; } @@ -85,7 +84,6 @@ bt_bool is_event_common_ctx_dbg_info_compatible(const bt_field_class *in_field_c 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; @@ -95,7 +93,7 @@ bt_bool is_event_common_ctx_dbg_info_compatible(const bt_field_class *in_field_c goto end; } - match = BT_TRUE; + match = true; end: return match;