X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Ftrace-ir%2Ffield.c;h=ff5c65a683656dfd856c16261a715a7cc90e204f;hb=7151fb67130ebbdc531424a4b87461e781da001f;hp=4f75c3441dc161cf0f77cf6c051acd6fcc17d4d8;hpb=578e048b5debf169e286e5b5cc747b5d6c16886d;p=babeltrace.git diff --git a/src/lib/trace-ir/field.c b/src/lib/trace-ir/field.c index 4f75c344..ff5c65a6 100644 --- a/src/lib/trace-ir/field.c +++ b/src/lib/trace-ir/field.c @@ -21,7 +21,7 @@ * SOFTWARE. */ -#define BT_LOG_TAG "FIELDS" +#define BT_LOG_TAG "LIB/FIELD" #include "lib/lib-logging.h" #include "lib/assert-pre.h" @@ -666,7 +666,7 @@ enum bt_field_status bt_field_string_append_with_length(struct bt_field *field, new_length = length + string_field->length; - if (unlikely(new_length + 1 > string_field->buf->len)) { + if (G_UNLIKELY(new_length + 1 > string_field->buf->len)) { g_array_set_size(string_field->buf, new_length + 1); } @@ -708,7 +708,7 @@ enum bt_field_status bt_field_dynamic_array_set_length(struct bt_field *field, BT_FIELD_CLASS_TYPE_DYNAMIC_ARRAY, "Field"); BT_ASSERT_PRE_FIELD_HOT(field, "Field"); - if (unlikely(length > array_field->fields->len)) { + if (G_UNLIKELY(length > array_field->fields->len)) { /* Make more room */ struct bt_field_class_array *array_fc; uint64_t cur_len = array_field->fields->len;