From: Mathieu Desnoyers Date: Thu, 12 Jan 2012 22:49:31 +0000 (-0500) Subject: Fix incorrect error message for stop trace X-Git-Tag: v2.0-pre17~22^2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=190df5ac47b77841178c8e5b87eb8a5a13ecdb2e;p=lttng-tools.git Fix incorrect error message for stop trace Reported-by: Tan Dung Le Tran Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-sessiond/main.c b/lttng-sessiond/main.c index 04ac25d0f..f5f8dbe86 100644 --- a/lttng-sessiond/main.c +++ b/lttng-sessiond/main.c @@ -2916,7 +2916,7 @@ static int cmd_stop_trace(struct ltt_session *session) usess = session->ust_session; if (!session->enabled) { - ret = LTTCOMM_UST_START_FAIL; + ret = LTTCOMM_UST_STOP_FAIL; goto error; } @@ -2953,7 +2953,7 @@ static int cmd_stop_trace(struct ltt_session *session) ret = ust_app_stop_trace_all(usess); if (ret < 0) { - ret = LTTCOMM_UST_START_FAIL; + ret = LTTCOMM_UST_STOP_FAIL; goto error; } }