lttng: show man page when using command's --help
[lttng-tools.git] / src / bin / lttng / commands / enable_channels.c
index b7863332e6888837840a46995e0361adb8663c17..93d81d7355167a310685f9a75209009e55d9e195 100644 (file)
@@ -15,7 +15,6 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#define _GNU_SOURCE
 #define _LGPL_SOURCE
 #include <popt.h>
 #include <stdio.h>
@@ -381,6 +380,7 @@ static void init_channel_config(void)
         * those needed to be set by the default values.
         */
        memset(&chan.attr, -1, sizeof(chan.attr));
+       chan.attr.extended.ptr = NULL;
 }
 
 /*
@@ -401,7 +401,7 @@ int cmd_enable_channels(int argc, const char **argv)
        while ((opt = poptGetNextOpt(pc)) != -1) {
                switch (opt) {
                case OPT_HELP:
-                       usage(stdout);
+                       SHOW_HELP();
                        goto end;
                case OPT_DISCARD:
                        chan.attr.overwrite = 0;
This page took 0.023209 seconds and 4 git commands to generate.