Small fix to lttng list session
authorDavid Goulet <dgoulet@efficios.com>
Tue, 14 Feb 2012 22:31:57 +0000 (17:31 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 14 Feb 2012 23:30:07 +0000 (18:30 -0500)
commitd32fb0935e594470f6a7e9ff0797ef101c500797
treea5fe2e1e4a0ff82dcd5a91a124a5a5922f073362
parent915d047cc8abd8a6e1255dba3e877236f8e8be51
Small fix to lttng list session

This patch makes lttng_list_sessions return 0 (not an error) when there
is in fact zero registered sessions. Also adding a MSG() to the user to
inform that no sessions exist and the error code is 0.

Reported-by: Tan Dung Le Tran <tan.dung.le.tran@ericsson.com>
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/main.c
src/bin/lttng/commands/list.c
This page took 0.034698 seconds and 4 git commands to generate.