Fix errors due to lttng.h cleanup
[lttng-tools.git] / lttng / lttng.c
index 7fbbcd68f4f216388aedc661f8b2cef4951c0778..ab89952740b1beda71a7d233a759db253f773c3e 100644 (file)
@@ -32,8 +32,8 @@
 
 #include <lttng/lttng.h>
 
-#include "lttng.h"
 #include "lttngerr.h"
+#include "options.h"
 
 /* Variables */
 static char *progname;
@@ -569,6 +569,9 @@ static int validate_options(void)
        } else if (opt_stop_trace && opt_trace_pid != 0 && opt_trace_name == NULL) {
                ERR("Please specify a trace name for user-space tracing");
                goto error;
+       } else if (opt_stop_trace && opt_session_name == NULL) {
+               ERR("Please specify a session to stop tracing");
+               goto error;
        }
 
        /* If start trace, auto start tracing */
This page took 0.023272 seconds and 4 git commands to generate.