X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Flist.c;h=7c33046ebec1490f798ca4a63e71f0778f91c1db;hb=65b1b1983d46c85ee8754c24c108a0df79a60559;hp=b73d5209f7f023408048fa27f90f9e0a3a45aeb3;hpb=441c16a7f0bbab56a5e783059d0cddab68544a9a;p=lttng-tools.git diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index b73d5209f..7c33046eb 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -598,6 +598,10 @@ int cmd_list(int argc, const char **argv) } else if (opt_userspace) { DBG2("Listing userspace global domain"); domain.type = LTTNG_DOMAIN_UST; + } else { + usage(stderr); + ret = CMD_UNDEFINED; + goto end; } handle = lttng_create_handle(session_name, &domain);