Mi fix: refactor disable_channel mi output to success element
authorJonathan Rajotte Julien <jonathan.r.julien@gmail.com>
Wed, 2 Jul 2014 19:25:33 +0000 (15:25 -0400)
committerJonathan Rajotte Julien <jonathan.r.julien@gmail.com>
Tue, 22 Jul 2014 20:14:57 +0000 (16:14 -0400)
Signed-off-by: Jonathan Rajotte Julien <jonathan.r.julien@gmail.com>
src/bin/lttng/commands/disable_channels.c
src/common/mi_lttng.xsd

index 7ae2ed79ad9439f036d2b1606581174321ba290c..27f1db5b845f738af0b7a97f4c1062774c8f828a 100644 (file)
@@ -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;
index c5bd1d935a7b846f6b97a8b786789b9c7cd3cb06..db440920469a395ed2b92764e03b27e694a3dc7a 100644 (file)
@@ -281,6 +281,7 @@ THE SOFTWARE.
                        <xs:element name="enabled" type="xs:boolean" default="true" minOccurs="0" />
                        <xs:element name="attributes" type="channel_attributes_type" minOccurs="0" />
                        <xs:element name="events" type="event_list_type" minOccurs="0" />
+                       <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
                </xs:all>
        </xs:complexType>
 
This page took 0.034232 seconds and 4 git commands to generate.