Fix incorrect error message for stop trace
[lttng-tools.git] / lttng-sessiond / main.c
index 04ac25d0f0837b906dfa6f15ae4b9e3ca235bf5e..f5f8dbe86a3999d4fb10a30e34f0892ea973dd66 100644 (file)
@@ -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;
                }
        }
This page took 0.023117 seconds and 4 git commands to generate.