projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mi: support "add-context --list"
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
enable_events.c
diff --git
a/src/bin/lttng/commands/enable_events.c
b/src/bin/lttng/commands/enable_events.c
index 0c001fd9e7fb0cb0a4510858c1c8b78a311c03d1..05f20f72de03309afda2add9c268a9d934fbe77f 100644
(file)
--- a/
src/bin/lttng/commands/enable_events.c
+++ b/
src/bin/lttng/commands/enable_events.c
@@
-26,7
+26,7
@@
#include <inttypes.h>
#include <ctype.h>
#include <inttypes.h>
#include <ctype.h>
-#include <
src/
common/sessiond-comm/sessiond-comm.h>
+#include <common/sessiond-comm/sessiond-comm.h>
#include <common/compat/string.h>
#include <common/string-utils/string-utils.h>
#include <common/compat/string.h>
#include <common/string-utils/string-utils.h>
@@
-1264,6
+1264,7
@@
int cmd_enable_events(int argc, const char **argv)
int opt, ret = CMD_SUCCESS, command_ret = CMD_SUCCESS, success = 1;
static poptContext pc;
char *session_name = NULL;
int opt, ret = CMD_SUCCESS, command_ret = CMD_SUCCESS, success = 1;
static poptContext pc;
char *session_name = NULL;
+ const char *leftover = NULL;
int event_type = -1;
pc = poptGetContext(NULL, argc, argv, long_options, 0);
int event_type = -1;
pc = poptGetContext(NULL, argc, argv, long_options, 0);
@@
-1363,6
+1364,13
@@
int cmd_enable_events(int argc, const char **argv)
goto end;
}
goto end;
}
+ leftover = poptGetArg(pc);
+ if (leftover) {
+ ERR("Unknown argument: %s", leftover);
+ ret = CMD_ERROR;
+ goto end;
+ }
+
if (!opt_session_name) {
session_name = get_session_name();
if (session_name == NULL) {
if (!opt_session_name) {
session_name = get_session_name();
if (session_name == NULL) {
This page took
0.025473 seconds
and
4
git commands to generate.