From 66871d3635196f36f6a2ff8a3502cbb7df0a129c Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Sun, 14 May 2017 17:33:09 -0400 Subject: [PATCH] Logging: use WARN level where appropriate MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- lib/ctf-ir/event-class.c | 4 ++-- lib/ctf-ir/stream-class.c | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/ctf-ir/event-class.c b/lib/ctf-ir/event-class.c index 5be7e7ad..2731da08 100644 --- a/lib/ctf-ir/event-class.c +++ b/lib/ctf-ir/event-class.c @@ -881,7 +881,7 @@ int bt_ctf_event_class_serialize(struct bt_ctf_event_class *event_class, ret = bt_ctf_field_type_serialize(event_class->context, context); if (ret) { - BT_LOGE("Cannot serialize event class's context field type's metadata: " + BT_LOGW("Cannot serialize event class's context field type's metadata: " "ret=%d", ret); goto end; } @@ -892,7 +892,7 @@ int bt_ctf_event_class_serialize(struct bt_ctf_event_class *event_class, g_string_append(context->string, "\tfields := "); ret = bt_ctf_field_type_serialize(event_class->fields, context); if (ret) { - BT_LOGE("Cannot serialize event class's payload field type's metadata: " + BT_LOGW("Cannot serialize event class's payload field type's metadata: " "ret=%d", ret); goto end; } diff --git a/lib/ctf-ir/stream-class.c b/lib/ctf-ir/stream-class.c index 0e3a33bc..0f1eee39 100644 --- a/lib/ctf-ir/stream-class.c +++ b/lib/ctf-ir/stream-class.c @@ -436,7 +436,7 @@ void event_class_exists(gpointer element, gpointer query) } if (id_a == id_b) { - BT_LOGD("Event class with this ID already exists in the stream class: " + BT_LOGW("Event class with this ID already exists in the stream class: " "id=%" PRId64 ", name=\"%s\"", id_a, bt_ctf_event_class_get_name(event_class_a)); search_query->found = 1; @@ -573,7 +573,7 @@ int bt_ctf_stream_class_add_event_class( if ((validation_output.valid_flags & validation_flags) != validation_flags) { /* Invalid 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); ret = -1; @@ -1052,7 +1052,7 @@ int bt_ctf_stream_class_serialize(struct bt_ctf_stream_class *stream_class, ret = bt_ctf_field_type_serialize(stream_class->event_header_type, context); if (ret) { - BT_LOGE("Cannot serialize stream class's event header field type's metadata: " + BT_LOGW("Cannot serialize stream class's event header field type's metadata: " "ret=%d", ret); goto end; } @@ -1062,7 +1062,7 @@ int bt_ctf_stream_class_serialize(struct bt_ctf_stream_class *stream_class, ret = bt_ctf_field_type_serialize(stream_class->packet_context_type, context); if (ret) { - BT_LOGE("Cannot serialize stream class's packet context field type's metadata: " + BT_LOGW("Cannot serialize stream class's packet context field type's metadata: " "ret=%d", ret); goto end; } @@ -1073,7 +1073,7 @@ int bt_ctf_stream_class_serialize(struct bt_ctf_stream_class *stream_class, ret = bt_ctf_field_type_serialize( stream_class->event_context_type, context); if (ret) { - BT_LOGE("Cannot serialize stream class's event context field type's metadata: " + BT_LOGW("Cannot serialize stream class's event context field type's metadata: " "ret=%d", ret); goto end; } @@ -1086,7 +1086,7 @@ int bt_ctf_stream_class_serialize(struct bt_ctf_stream_class *stream_class, ret = bt_ctf_event_class_serialize(event_class, context); if (ret) { - BT_LOGE("Cannot serialize event class's metadata: " + BT_LOGW("Cannot serialize event class's metadata: " "event-class-addr=%p, event-class-name=\"%s\", " "event-class-id=%" PRId64, event_class, -- 2.34.1