* SOFTWARE.
*/
-#define BT_LOG_TAG "FIELDS"
+#define BT_LOG_TAG "LIB/FIELD"
#include "lib/lib-logging.h"
#include "lib/assert-pre.h"
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);
}
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;