Fix: incorrect support for multi-context
[lttng-ust.git] / liblttng-ust / lttng-events.c
index e4faf605e6e0eb1d5642fc5dea1b2d4bd0ae5946..a3127a473cba216637b7ad41da287b3372d09b8b 100644 (file)
@@ -260,7 +260,7 @@ int lttng_session_enable(struct lttng_session *session)
         */
        cds_list_for_each_entry(chan, &session->chan_head, node) {
                const struct lttng_ctx *ctx;
-               const struct lttng_event_field *fields = NULL;
+               const struct lttng_ctx_field *fields = NULL;
                size_t nr_fields = 0;
                uint32_t chan_id;
 
@@ -270,7 +270,7 @@ int lttng_session_enable(struct lttng_session *session)
                ctx = chan->ctx;
                if (ctx) {
                        nr_fields = ctx->nr_fields;
-                       fields = &ctx->fields->event_field;
+                       fields = ctx->fields;
                }
                ret = ustcomm_register_channel(notify_socket,
                        session->objd,
This page took 0.024599 seconds and 4 git commands to generate.