projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement userspace probe location extraction and registration
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
load.c
diff --git
a/src/bin/lttng/commands/load.c
b/src/bin/lttng/commands/load.c
index ad61849235d74220f5328e7bdc496fcabd6896ba..07ef1214ff026619c14c36fcc82012093ef27b18 100644
(file)
--- a/
src/bin/lttng/commands/load.c
+++ b/
src/bin/lttng/commands/load.c
@@
-163,6
+163,7
@@
int cmd_load(int argc, const char **argv)
poptContext pc;
struct lttng_load_session_attr *session_attr = NULL;
char *input_path = NULL;
poptContext pc;
struct lttng_load_session_attr *session_attr = NULL;
char *input_path = NULL;
+ const char *leftover = NULL;
pc = poptGetContext(NULL, argc, argv, load_opts, 0);
poptReadDefaultConfig(pc, 0);
pc = poptGetContext(NULL, argc, argv, load_opts, 0);
poptReadDefaultConfig(pc, 0);
@@
-206,6
+207,13
@@
int cmd_load(int argc, const char **argv)
}
}
}
}
+ leftover = poptGetArg(pc);
+ if (leftover) {
+ ERR("Unknown argument: %s", leftover);
+ ret = CMD_ERROR;
+ goto end;
+ }
+
/* Mi check */
if (lttng_opt_mi) {
writer = mi_lttng_writer_create(fileno(stdout), lttng_opt_mi);
/* Mi check */
if (lttng_opt_mi) {
writer = mi_lttng_writer_create(fileno(stdout), lttng_opt_mi);
This page took
0.023527 seconds
and
4
git commands to generate.