From 3d66e98ccd82d099ae3da070c2273b8cce294ab7 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 17 Mar 2021 14:56:46 -0400 Subject: [PATCH] Fix: missing field name refactoring in java agent Signed-off-by: Mathieu Desnoyers Change-Id: I28fcf080545cad5bc44270419059bcaaa627572e --- liblttng-ust-java-agent/jni/common/lttng_ust_context.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/liblttng-ust-java-agent/jni/common/lttng_ust_context.c b/liblttng-ust-java-agent/jni/common/lttng_ust_context.c index 07f55cba..9c379bcf 100644 --- a/liblttng-ust-java-agent/jni/common/lttng_ust_context.c +++ b/liblttng-ust-java-agent/jni/common/lttng_ust_context.c @@ -77,7 +77,7 @@ static size_t get_size_cb(struct lttng_ust_ctx_field *field, size_t offset) { struct lttng_ust_jni_ctx_entry *jctx; size_t size = 0; - const char *ctx_name = field->event_field.name; + const char *ctx_name = field->event_field->name; enum lttng_ust_jni_type jni_type; @@ -140,7 +140,7 @@ static void record_cb(struct lttng_ust_ctx_field *field, struct lttng_channel *chan) { struct lttng_ust_jni_ctx_entry *jctx; - const char *ctx_name = field->event_field.name; + const char *ctx_name = field->event_field->name; enum lttng_ust_jni_type jni_type; char sel_char; @@ -260,7 +260,7 @@ static void get_value_cb(struct lttng_ust_ctx_field *field, struct lttng_ust_ctx_value *value) { struct lttng_ust_jni_ctx_entry *jctx; - const char *ctx_name = field->event_field.name; + const char *ctx_name = field->event_field->name; enum lttng_ust_jni_type jni_type; jctx = lookup_ctx_by_name(ctx_name); -- 2.34.1