Allow stream_id change in event class attributes
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 15 Nov 2016 16:49:12 +0000 (11:49 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 27 May 2017 18:09:06 +0000 (14:09 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/ir/event-class.c

index fa55457c3cb15dd1fefba7dc9f43f6ae312d1ef0..fa5756d65930d1cc90276b97d3b7009b9dd76752 100644 (file)
@@ -220,7 +220,8 @@ int bt_ctf_event_class_set_attribute(
                goto end;
        }
 
-       if (!strcmp(name, "id") || !strcmp(name, "loglevel")) {
+       if (!strcmp(name, "id") || !strcmp(name, "loglevel") ||
+                       !strcmp(name, "stream_id")) {
                if (!bt_value_is_integer(value)) {
                        ret = -1;
                        goto end;
@@ -253,7 +254,7 @@ int bt_ctf_event_class_set_attribute(
        }
 
        ret = bt_ctf_attributes_set_field_value(event_class->attributes,
-               name, value);
+                       name, value);
 
 end:
        return ret;
This page took 0.02789 seconds and 4 git commands to generate.