Fix: MI: close domain when listing multiple agent domains
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 22 Aug 2015 06:47:53 +0000 (02:47 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Sep 2015 13:43:28 +0000 (09:43 -0400)
Without this patch, each agent domain gets nested under
the previous one.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/list.c

index 0c0a37a7ae74012adf896918a3edc882ae8898eb..0492c804ad5b0fb19d69a3693eaefe412b6a7965 100644 (file)
@@ -1855,7 +1855,8 @@ int cmd_list(int argc, const char **argv)
                                        if (ret) {
                                                goto end;
                                        }
-                                       continue;
+
+                                       goto next_domain;
                                }
 
                                switch (domains[i].type) {
@@ -1875,6 +1876,7 @@ int cmd_list(int argc, const char **argv)
                                        goto end;
                                }
 
+next_domain:
                                if (lttng_opt_mi) {
                                        /* Close domain element */
                                        ret = mi_lttng_writer_close_element(writer);
This page took 0.026988 seconds and 4 git commands to generate.