ctf, ir: escape and unescape enumeration FT labels starting with `_`
[babeltrace.git] / lib / ctf-ir / clock-class.c
index 5d623c47ddeea113628ed2f3ae3a9c76b5ab59b2..7c28fee843f6271daf4b5c77124d5c8ea9d8ab6f 100644 (file)
@@ -67,7 +67,7 @@ int bt_clock_class_set_name(struct bt_clock_class *clock_class,
                goto end;
        }
 
-       if (bt_identifier_is_valid(name)) {
+       if (!bt_identifier_is_valid(name)) {
                BT_LOGE("Clock class's name is not a valid CTF identifier: "
                        "addr=%p, name=\"%s\"",
                        clock_class, name);
This page took 0.023147 seconds and 4 git commands to generate.