X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fdisable_channels.c;h=96a9e5d6c93292f9c6d101d56b9b8f904ebdce2a;hb=44c1a903e17ad14d5ba1cd07585a7a2415eac78a;hp=7ae2ed79ad9439f036d2b1606581174321ba290c;hpb=50534d6fb4b1f0557b45919c8efad209f68b5e26;p=lttng-tools.git diff --git a/src/bin/lttng/commands/disable_channels.c b/src/bin/lttng/commands/disable_channels.c index 7ae2ed79a..96a9e5d6c 100644 --- a/src/bin/lttng/commands/disable_channels.c +++ b/src/bin/lttng/commands/disable_channels.c @@ -16,6 +16,7 @@ */ #define _GNU_SOURCE +#define _LGPL_SOURCE #include #include #include @@ -110,7 +111,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 +180,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;