Logging: use WARN level where appropriate
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sun, 14 May 2017 21:33:09 +0000 (17:33 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:43 +0000 (12:57 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lib/ctf-ir/event-class.c
lib/ctf-ir/stream-class.c

index 5be7e7adae1591e694dadbaf3fe914641ee2349b..2731da0869e32ff2a7feacfd91ca8d56f9b56d5b 100644 (file)
@@ -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;
                }
index 0e3a33bcf909295acdfebf20290195dd7f5e3c45..0f1eee39f16625bba14e12d969232ba868765a0d 100644 (file)
@@ -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,
This page took 0.027564 seconds and 4 git commands to generate.