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>
Sun, 6 Sep 2015 03:07:11 +0000 (23:07 -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 18ae026c29e9eeb77010b8d1a1cb15cd4327e2d6..bc59e626f08fe998cd8f2e7e20749092f6cdde36 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.026244 seconds and 4 git commands to generate.