lib: create a clock class object from component
[babeltrace.git] / plugins / text / dmesg / dmesg.c
index 914ae06361e6db2a583a6c90deb4a88b4d21e5f9..d8afa858c4af47006a1d8d2a51603c0cb4de0c76 100644 (file)
@@ -141,7 +141,8 @@ int create_meta(struct dmesg_component *dmesg_comp, bool has_ts)
 
        if (has_ts) {
                dmesg_comp->clock_class = bt_clock_class_create(
-                       dmesg_comp->trace_class);
+                               bt_self_component_source_as_self_component(
+                                       dmesg_comp->self_comp));
                if (!dmesg_comp->clock_class) {
                        BT_LOGE_STR("Cannot create clock class.");
                        goto error;
This page took 0.024838 seconds and 4 git commands to generate.