From: Philippe Proulx Date: Sat, 22 Aug 2015 06:47:53 +0000 (-0400) Subject: Fix: MI: close domain when listing multiple agent domains X-Git-Tag: v2.7.0-rc2~62 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4a824c7f9b61a1db01644c694651698e7e6f70ef;p=lttng-tools.git Fix: MI: close domain when listing multiple agent domains Without this patch, each agent domain gets nested under the previous one. Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index 0c0a37a7a..0492c804a 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -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);