X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=lib%2Fctf-ir%2Fevent-class.c;h=8ff8bc0394ed9f5f2b69d62ba74d219f7c5e5747;hb=f4cc9a214ceca8dc8b4e81264850d1255107b01b;hp=4c969978b27220fbd54f225d99cdf232ba9f9504;hpb=8ed0bf1041490e214247a7ad8cb013f0f36c7f2c;p=babeltrace.git diff --git a/lib/ctf-ir/event-class.c b/lib/ctf-ir/event-class.c index 4c969978..8ff8bc03 100644 --- a/lib/ctf-ir/event-class.c +++ b/lib/ctf-ir/event-class.c @@ -381,7 +381,7 @@ int bt_event_class_add_field(struct bt_event_class *event_class, goto end; } - if (bt_identifier_is_valid(name)) { + if (!bt_identifier_is_valid(name)) { BT_LOGW("Invalid parameter: event class's payload field type's field name is not a valid CTF identifier: " "addr=%p, name=\"%s\", id=%" PRId64 ", field-name=\"%s\"", event_class, bt_event_class_get_name(event_class),