Fix: use the config_event_type instead of opt_event_type
[lttng-tools.git] / src / bin / lttng / commands / enable_events.c
index 90bd43e48fbbaa69fddc263c89bcdbbfaca93fbd..129f86d0f25193598a7e284ce77592f701fab8ff 100644 (file)
@@ -1034,7 +1034,7 @@ static int enable_events(char *session_name, struct domain_configuration *config
 
                        if (config_exclude) {
                                ev.exclusion = 1;
-                               if (config_event_type != LTTNG_EVENT_ALL && opt_event_type != LTTNG_EVENT_TRACEPOINT) {
+                               if (config_event_type != LTTNG_EVENT_ALL && config_event_type != LTTNG_EVENT_TRACEPOINT) {
                                        ERR("Exclusion option can only be used with tracepoint events");
                                        ret = CMD_ERROR;
                                        goto error;
This page took 0.023801 seconds and 5 git commands to generate.