From: Jonathan Rajotte Julien Date: Wed, 2 Jul 2014 19:25:33 +0000 (-0400) Subject: Mi fix: refactor disable_channel mi output to success element X-Git-Tag: v2.6.0-rc1~113 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=9618049b6266c05789d6d7b29279e258cf67fb25;ds=sidebyside Mi fix: refactor disable_channel mi output to success element Signed-off-by: Jonathan Rajotte Julien --- diff --git a/src/bin/lttng/commands/disable_channels.c b/src/bin/lttng/commands/disable_channels.c index 7ae2ed79a..27f1db5b8 100644 --- a/src/bin/lttng/commands/disable_channels.c +++ b/src/bin/lttng/commands/disable_channels.c @@ -110,7 +110,7 @@ static int mi_partial_channel_print(char *channel_name, unsigned int enabled, /* Success ? */ ret = mi_lttng_writer_write_element_bool(writer, - mi_lttng_element_command, success); + mi_lttng_element_success, success); if (ret) { goto end; } @@ -179,7 +179,8 @@ static int disable_channels(char *session_name) * Mi: * We assume that if an error occurred the channel is still active. * This might not be the case but is a good assumption. - * The client should look at the stderr stream for more informations. + * The client should look at the stderr stream + * for more informations. */ enabled = 1; success = 0; diff --git a/src/common/mi_lttng.xsd b/src/common/mi_lttng.xsd index c5bd1d935..db4409204 100644 --- a/src/common/mi_lttng.xsd +++ b/src/common/mi_lttng.xsd @@ -281,6 +281,7 @@ THE SOFTWARE. +