From 9618049b6266c05789d6d7b29279e258cf67fb25 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Julien Date: Wed, 2 Jul 2014 15:25:33 -0400 Subject: [PATCH] Mi fix: refactor disable_channel mi output to success element Signed-off-by: Jonathan Rajotte Julien --- src/bin/lttng/commands/disable_channels.c | 5 +++-- src/common/mi_lttng.xsd | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) 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. + -- 2.34.1