projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix enable-channel that did not handle correctly lttng domains
[lttng-tools.git]
/
lttng
/
commands
/
enable_channels.c
diff --git
a/lttng/commands/enable_channels.c
b/lttng/commands/enable_channels.c
index d8ad2a77b67a548df98ac10c6077e5f46481642e..13511cc869803097edff9bc2542a35218b38e870 100644
(file)
--- a/
lttng/commands/enable_channels.c
+++ b/
lttng/commands/enable_channels.c
@@
-119,6
+119,7
@@
static int enable_channel(char *session_name)
dom.attr.pid = opt_pid;
DBG("PID %d set to lttng handle", opt_pid);
} else {
dom.attr.pid = opt_pid;
DBG("PID %d set to lttng handle", opt_pid);
} else {
+ ERR("Please specify a tracer (--kernel or --userspace)");
ret = CMD_NOT_IMPLEMENTED;
goto error;
}
ret = CMD_NOT_IMPLEMENTED;
goto error;
}
@@
-127,9
+128,6
@@
static int enable_channel(char *session_name)
if (handle == NULL) {
ret = -1;
goto error;
if (handle == NULL) {
ret = -1;
goto error;
- } else {
- ERR("Please specify a tracer (--kernel or --userspace)");
- goto error;
}
/* Strip channel list (format: chan1,chan2,...) */
}
/* Strip channel list (format: chan1,chan2,...) */
This page took
0.037578 seconds
and
4
git commands to generate.