From: Jérémie Galarneau Date: Sat, 14 Sep 2019 20:27:45 +0000 (-0400) Subject: sessiond: clean-up: mixed log levels enums used to look-up event X-Git-Tag: v2.12.0-rc1~381 X-Git-Url: http://git.liburcu.org/?p=lttng-tools.git;a=commitdiff_plain;h=abda88ad06a238652230a7d19f0775a7a75d3dc4 sessiond: clean-up: mixed log levels enums used to look-up event 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 --- 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);