Fix: do not return error on LTTNG_ERR_SNAPSHOT_NODATA
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 22 Mar 2016 18:12:04 +0000 (14:12 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 20 May 2016 20:42:30 +0000 (16:42 -0400)
commit4bab9f0d237a16be490e9ea35089bc212dc1c8c4
treea5f475bb6db0089b02de83e64242baa501ed1881
parent84f4ce0977fcb42ca4a0aeb9b4feb7b8297d3b04
Fix: do not return error on LTTNG_ERR_SNAPSHOT_NODATA

A warning is fine since the user has no control on
whether or not applications (or the kernel) have
produced any event between the start of the tracing
session and the recording of the snapshot.

MI wise the command is not a success since nothing was
recorded. The command line return code is CMD_SUCCESS.

refs #1002

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/snapshot.c
This page took 0.02575 seconds and 4 git commands to generate.