From: David Goulet Date: Tue, 14 Feb 2012 22:31:57 +0000 (-0500) Subject: Small fix to lttng list session X-Git-Tag: v2.0-pre23~6 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;ds=sidebyside;h=d32fb0935e594470f6a7e9ff0797ef101c500797;hp=d32fb0935e594470f6a7e9ff0797ef101c500797;p=lttng-tools.git 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 Acked-by: Mathieu Desnoyers Signed-off-by: David Goulet ---