X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fdisable_channels.c;h=27f1db5b845f738af0b7a97f4c1062774c8f828a;hp=7ae2ed79ad9439f036d2b1606581174321ba290c;hb=9618049b6266c05789d6d7b29279e258cf67fb25;hpb=d813f89b7930eaf5425aa306c4e297a1045c54a1 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;