From 190df5ac47b77841178c8e5b87eb8a5a13ecdb2e Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 12 Jan 2012 17:49:31 -0500 Subject: [PATCH] Fix incorrect error message for stop trace Reported-by: Tan Dung Le Tran Signed-off-by: Mathieu Desnoyers --- lttng-sessiond/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 2.34.1