X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=lttng%2Fcommands%2Flist.c;fp=lttng%2Fcommands%2Flist.c;h=fcfaa3f23513d0970c0f609f521f5f25ac2e20dd;hp=e2d5b6643d5df24f15d5a2bb658ae6460604c22e;hb=6caa2bcc3ec40374ae1c3b81c0179eb3f693de84;hpb=40e9d5d35c87e260affd0e806152a8b28ce6c211 diff --git a/lttng/commands/list.c b/lttng/commands/list.c index e2d5b6643..fcfaa3f23 100644 --- a/lttng/commands/list.c +++ b/lttng/commands/list.c @@ -48,7 +48,7 @@ static struct poptOption long_options[] = { /* longName, shortName, argInfo, argPtr, value, descrip, argDesc */ {"help", 'h', POPT_ARG_NONE, 0, OPT_HELP, 0, 0}, {"kernel", 'k', POPT_ARG_VAL, &opt_kernel, 1, 0, 0}, - {"userspace", 'u', POPT_ARG_STRING | POPT_ARGFLAG_OPTIONAL, 0, OPT_USERSPACE, 0, 0}, + {"userspace", 'u', POPT_ARG_STRING | POPT_ARGFLAG_OPTIONAL, &opt_cmd_name, OPT_USERSPACE, 0, 0}, {"pid", 'p', POPT_ARG_INT, &opt_pid, 0, 0, 0}, {"channel", 'c', POPT_ARG_STRING, &opt_channel, 0, 0, 0}, {"domain", 'd', POPT_ARG_VAL, &opt_domain, 1, 0, 0}, @@ -481,7 +481,6 @@ int cmd_list(int argc, const char **argv) goto end; case OPT_USERSPACE: opt_userspace = 1; - opt_cmd_name = poptGetOptArg(pc); break; default: usage(stderr);