projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lttng: show man page when using command's --help
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
enable_channels.c
diff --git
a/src/bin/lttng/commands/enable_channels.c
b/src/bin/lttng/commands/enable_channels.c
index b7863332e6888837840a46995e0361adb8663c17..93d81d7355167a310685f9a75209009e55d9e195 100644
(file)
--- a/
src/bin/lttng/commands/enable_channels.c
+++ b/
src/bin/lttng/commands/enable_channels.c
@@
-15,7
+15,6
@@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define _GNU_SOURCE
#define _LGPL_SOURCE
#include <popt.h>
#include <stdio.h>
#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));
* 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:
while ((opt = poptGetNextOpt(pc)) != -1) {
switch (opt) {
case OPT_HELP:
-
usage(stdout
);
+
SHOW_HELP(
);
goto end;
case OPT_DISCARD:
chan.attr.overwrite = 0;
goto end;
case OPT_DISCARD:
chan.attr.overwrite = 0;
This page took
0.026258 seconds
and
5
git commands to generate.