Add CMD_WARNING error code
authorDavid Goulet <dgoulet@efficios.com>
Fri, 27 Jan 2012 17:43:54 +0000 (12:43 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 27 Jan 2012 17:48:13 +0000 (12:48 -0500)
commitd16c1a4ce20ed71733c02353383f1a3058fe9ed2
treed8dd685c17bc864c77ae934d0c1ad193334f1e3d
parent3183dbb0b0a687ececcadb3be0cde938dc19f57a
Add CMD_WARNING error code

The CMD_WARNING is returned if at least one command went wrong and at
least one succeeded. This shoudl tell the user that there is an error
message on stderr but the rest of the command went well.

One use case for that is the multiple -t of add_context. If one of them
fails, this code is returned.

This error code is added at the end of the enum so the previous CMD code
are not changed.

Also, if the tracer (-k/-u) is not specified, CMD_ERROR is returned
instead of CMD_UNDEFINED which makes way more sense.

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng/command.h
src/bin/lttng/commands/add_context.c
src/bin/lttng/commands/calibrate.c
src/bin/lttng/commands/disable_channels.c
src/bin/lttng/commands/disable_events.c
src/bin/lttng/commands/enable_channels.c
src/bin/lttng/commands/enable_events.c
src/bin/lttng/lttng.c
This page took 0.025285 seconds and 4 git commands to generate.