lib/ctf-ir/event.c: replace some BT_LOGE() with BT_LOGW()
[babeltrace.git] / lib / ctf-ir / event.c
index f61454e96ccb55a87371aa7498419c005adc3a3f..1ab1be57db83fbcffb06b7de26290d8d38b6a463 100644 (file)
@@ -145,7 +145,7 @@ struct bt_ctf_event *bt_ctf_event_create(struct bt_ctf_event_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;
        }
@@ -924,20 +924,12 @@ int bt_ctf_event_serialize(struct bt_ctf_event *event,
        assert(event);
        assert(pos);
 
-       BT_LOGV("Serializing event: "
-               "event-addr=%p, event-class-name=\"%s\", "
-               "event-class-id=%" PRId64 ", pos-offset=%" PRId64 ", "
-               "native-bo=%s",
-               event, bt_ctf_event_class_get_name(event->event_class),
-               bt_ctf_event_class_get_id(event->event_class),
-               pos->offset, bt_ctf_byte_order_string(native_byte_order));
-
-       BT_LOGV_STR("Serializing context field.");
+       BT_LOGV_STR("Serializing event's context field.");
        if (event->context_payload) {
                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,
@@ -947,12 +939,12 @@ int bt_ctf_event_serialize(struct bt_ctf_event *event,
                }
        }
 
-       BT_LOGV_STR("Serializing payload field.");
+       BT_LOGV_STR("Serializing event's payload field.");
        if (event->fields_payload) {
                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,
This page took 0.023345 seconds and 4 git commands to generate.