Change --jul-port-tcp and jul.port to use agent namespace
[lttng-tools.git] / src / bin / lttng / commands / list.c
index 210c2f437708ef6a7e0ec3531762b6c6cd25ad48..580b13f1f88d9943162078e0655a2bb47448599b 100644 (file)
@@ -556,10 +556,8 @@ static int mi_list_ust_event_fields(struct lttng_event_field *fields, int count,
                if (cur_pid != fields[i].event.pid) {
                        if (pid_element_open) {
                                if (event_element_open) {
-                                       /* 
-                                        * Close the previous fields element
-                                        * and the previous event
-                                        */
+
+                                       /* Close the previous field element and event. */
                                        ret = mi_lttng_close_multi_element(writer, 2);
                                        if (ret) {
                                                goto end;
@@ -748,7 +746,7 @@ static int mi_list_kernel_events(struct lttng_event *events, int count,
        }
 
        for (i = 0; i < count; i++) {
-               mi_lttng_event(writer, &events[i], 0);
+               ret = mi_lttng_event(writer, &events[i], 0);
                if (ret) {
                        goto end;
                }
This page took 0.024495 seconds and 4 git commands to generate.