lttng: show man page when using command's --help
[lttng-tools.git] / src / bin / lttng / commands / stop.c
index a72f313dfccb11270607e1c2f9b9985419e820da..e946d4fdb503ad274a4e58f596d3fe28647760f5 100644 (file)
@@ -15,7 +15,7 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <popt.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -155,6 +155,7 @@ static int stop_tracing(void)
 
        ret = CMD_SUCCESS;
 
+       print_session_stats(session_name);
        MSG("Tracing stopped for session %s", session_name);
        if (lttng_opt_mi) {
                ret = mi_print_session(session_name, 0);
@@ -188,7 +189,7 @@ int cmd_stop(int argc, const char **argv)
        while ((opt = poptGetNextOpt(pc)) != -1) {
                switch (opt) {
                case OPT_HELP:
-                       usage(stdout);
+                       SHOW_HELP();
                        goto end;
                case OPT_LIST_OPTIONS:
                        list_cmd_options(stdout, long_options);
This page took 0.02437 seconds and 4 git commands to generate.