ctf, ir: escape and unescape enumeration FT labels starting with `_`
[babeltrace.git] / lib / ctf-ir / trace.c
index 4a3027b48ec76517c055b5312e59f91c185a2bfa..e21bf0eb4ef03485fbcda336dbd725b60729e534 100644 (file)
@@ -350,7 +350,7 @@ int bt_trace_set_environment_field(struct bt_trace *trace,
                goto end;
        }
 
-       if (bt_identifier_is_valid(name)) {
+       if (!bt_identifier_is_valid(name)) {
                BT_LOGW("Invalid parameter: environment field's name is not a valid CTF identifier: "
                        "trace-addr=%p, trace-name=\"%s\", "
                        "env-name=\"%s\"",
This page took 0.023498 seconds and 4 git commands to generate.