Fix start/stop lttng message error
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index 12322837e7f681038e0ed6fe54d2ac72e035668d..b275874e7bc98dc3062b27c7529479326ef1b9bc 100644 (file)
@@ -2850,7 +2850,8 @@ static int cmd_start_trace(struct ltt_session *session)
        usess = session->ust_session;
 
        if (session->enabled) {
-               ret = LTTCOMM_UST_START_FAIL;
+               /* Already started. */
+               ret = LTTCOMM_TRACE_ALREADY_STARTED;
                goto error;
        }
 
@@ -2942,7 +2943,7 @@ static int cmd_stop_trace(struct ltt_session *session)
        usess = session->ust_session;
 
        if (!session->enabled) {
-               ret = LTTCOMM_UST_STOP_FAIL;
+               ret = LTTCOMM_TRACE_ALREADY_STOPPED;
                goto error;
        }
 
This page took 0.024774 seconds and 5 git commands to generate.