X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fctf-ir%2Fevent-class.c;fp=lib%2Fctf-ir%2Fevent-class.c;h=4e71ab55ac17abe00caaf9a2de426598157822be;hb=96373046295c5e5957610fefb278db9f1ffba370;hp=9786c88a86020b357a55aa752e5818d011bba44e;hpb=6fa8d37b48e385c76a16e70dbefa36ef474ef142;p=babeltrace.git diff --git a/lib/ctf-ir/event-class.c b/lib/ctf-ir/event-class.c index 9786c88a..4e71ab55 100644 --- a/lib/ctf-ir/event-class.c +++ b/lib/ctf-ir/event-class.c @@ -378,7 +378,7 @@ bt_ctf_event_class_get_attribute_name_by_index( } ret = bt_ctf_attributes_get_field_name(event_class->attributes, index); - if (ret) { + if (!ret) { BT_LOGW("Cannot get event class's attribute name by index: " "addr=%p, name=\"%s\", id=%" PRId64 ", index=%" PRIu64, event_class, bt_ctf_event_class_get_name(event_class), @@ -402,7 +402,7 @@ bt_ctf_event_class_get_attribute_value_by_index( } ret = bt_ctf_attributes_get_field_value(event_class->attributes, index); - if (ret) { + if (!ret) { BT_LOGW("Cannot get event class's attribute value by index: " "addr=%p, name=\"%s\", id=%" PRId64 ", index=%" PRIu64, event_class, bt_ctf_event_class_get_name(event_class), @@ -429,7 +429,7 @@ bt_ctf_event_class_get_attribute_value_by_name( ret = bt_ctf_attributes_get_field_value_by_name(event_class->attributes, name); - if (ret) { + if (!ret) { BT_LOGV("Cannot find event class's attribute: " "addr=%p, event-class-name=\"%s\", id=%" PRId64 ", " "attr-name=\"%s\"",