Fix: "Any" loglevel's value is -1 and not 0
[lttng-tools.git] / src / lib / lttng-ctl / lttng-ctl.c
index 38cc79f3cb76fff32b0a1a23f5f7b7a8abcbb0e7..f204055b3d74fa889492bce06df650bc37077e7f 100644 (file)
@@ -1208,6 +1208,7 @@ int lttng_disable_event(struct lttng_handle *handle, const char *name,
        struct lttng_event ev;
 
        memset(&ev, 0, sizeof(ev));
+       ev.loglevel = -1;
        ev.type = LTTNG_EVENT_ALL;
        lttng_ctl_copy_string(ev.name, name, sizeof(ev.name));
        return lttng_disable_event_ext(handle, &ev, channel_name, NULL);
This page took 0.023077 seconds and 4 git commands to generate.