ctf, ir: escape and unescape enumeration FT labels starting with `_`
[babeltrace.git] / lib / ctf-ir / event-class.c
index 4c969978b27220fbd54f225d99cdf232ba9f9504..8ff8bc0394ed9f5f2b69d62ba74d219f7c5e5747 100644 (file)
@@ -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),
This page took 0.023965 seconds and 4 git commands to generate.