Field serialization can fail because of a user error, for example trying
to serialize a field which is not set.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
if ((validation_output.valid_flags & validation_flags) !=
validation_flags) {
/* Invalid trace/stream class/event class */
if ((validation_output.valid_flags & validation_flags) !=
validation_flags) {
/* Invalid trace/stream class/event class */
- BT_LOGE("Invalid trace, stream class, or event class: "
+ BT_LOGW("Invalid trace, stream class, or event class: "
"valid-flags=0x%x", validation_output.valid_flags);
goto error;
}
"valid-flags=0x%x", validation_output.valid_flags);
goto error;
}
ret = bt_ctf_field_serialize(event->context_payload, pos,
native_byte_order);
if (ret) {
ret = bt_ctf_field_serialize(event->context_payload, pos,
native_byte_order);
if (ret) {
- BT_LOGE("Cannot serialize event's context field: "
+ BT_LOGW("Cannot serialize event's context field: "
"event-addr=%p, event-class-name=\"%s\", "
"event-class-id=%" PRId64,
event,
"event-addr=%p, event-class-name=\"%s\", "
"event-class-id=%" PRId64,
event,
ret = bt_ctf_field_serialize(event->fields_payload, pos,
native_byte_order);
if (ret) {
ret = bt_ctf_field_serialize(event->fields_payload, pos,
native_byte_order);
if (ret) {
- BT_LOGE("Cannot serialize event's payload field: "
+ BT_LOGW("Cannot serialize event's payload field: "
"event-addr=%p, event-class-name=\"%s\", "
"event-class-id=%" PRId64,
event,
"event-addr=%p, event-class-name=\"%s\", "
"event-class-id=%" PRId64,
event,