Logging: standardize logging tags
[babeltrace.git] / src / lib / trace-ir / field.c
index 4f75c3441dc161cf0f77cf6c051acd6fcc17d4d8..ff5c65a683656dfd856c16261a715a7cc90e204f 100644 (file)
@@ -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;
This page took 0.023621 seconds and 4 git commands to generate.