Fix: pids should be numbers only
[lttng-tools.git] / src / bin / lttng / commands / disable_events.c
index e833fe9572141baf13c6a47ca7c922fb647d1155..45e91a8bbfe7c3e5ec49b975a219187f002d2a15 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <popt.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -221,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.022779 seconds and 4 git commands to generate.