#include <babeltrace2/ctf-writer/fields.h>
#include <babeltrace2/types.h>
-#include "common/babeltrace.h"
+#include "common/macros.h"
#include "common/common.h"
#include "ctfser/ctfser.h"
length);
BT_CTF_ASSERT_PRE_CTF_FIELD_COMMON_HOT(field, "Sequence field");
- if (unlikely(length > sequence->elements->len)) {
+ if (G_UNLIKELY(length > sequence->elements->len)) {
/* Make more room */
struct bt_ctf_field_type_common_sequence *sequence_ft;
uint64_t cur_len = sequence->elements->len;
if (!g_hash_table_lookup_extended(field_name_to_index,
GUINT_TO_POINTER(field_quark),
NULL, (gpointer *) &index)) {
- BT_LOGV("Invalid parameter: no such field in structure field's type: "
+ BT_LOGT("Invalid parameter: no such field in structure field's type: "
"struct-field-addr=%p, struct-ft-addr=%p, name=\"%s\"",
field, field->type, name);
goto error;
new_size = string_field->size + length;
- if (unlikely(new_size + 1 > string_field->buf->len)) {
+ if (G_UNLIKELY(new_size + 1 > string_field->buf->len)) {
g_array_set_size(string_field->buf, new_size + 1);
}