From abda88ad06a238652230a7d19f0775a7a75d3dc4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Sat, 14 Sep 2019 16:27:45 -0400 Subject: [PATCH] sessiond: clean-up: mixed log levels enums used to look-up event MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit lttng_ust_loglevel_type and lttng_loglevel_type enums are mixed. This is correct as they share all values. A cast is added to silence a clang warning. Normally we would assign the values of one to the other. This is not practical here as the ust variant is defined by the lttng-ust API and the other is part of the public lttng-ctl API. Signed-off-by: Jérémie Galarneau --- src/bin/lttng-sessiond/event.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/lttng-sessiond/event.c b/src/bin/lttng-sessiond/event.c index 0b612d2c6..f4b976f3b 100644 --- a/src/bin/lttng-sessiond/event.c +++ b/src/bin/lttng-sessiond/event.c @@ -172,7 +172,8 @@ int event_ust_enable_tracepoint(struct ltt_ust_session *usess, rcu_read_lock(); uevent = trace_ust_find_event(uchan->events, event->name, filter, - event->loglevel_type, event->loglevel, exclusion); + (enum lttng_ust_loglevel_type) event->loglevel_type, + event->loglevel, exclusion); if (!uevent) { ret = trace_ust_create_event(event, filter_expression, filter, exclusion, internal_event, &uevent); -- 2.34.1