Fix: "Any" loglevel's value is -1 and not 0
[lttng-tools.git] / src / bin / lttng / commands / disable_events.c
index 9ab8bf0b2972f244a4e9223105e7543b0c8025cf..45e91a8bbfe7c3e5ec49b975a219187f002d2a15 100644 (file)
@@ -222,6 +222,9 @@ static int disable_events(char *session_name)
        }
 
        memset(&event, 0, sizeof(event));
+       /* Set default loglevel to any/unknown */
+       event.loglevel = -1;
+
        switch (opt_event_type) {
        case LTTNG_EVENT_SYSCALL:
                event.type = LTTNG_EVENT_SYSCALL;
This page took 0.023454 seconds and 4 git commands to generate.