X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fadd_context.c;h=3cd00f3d3411ac2e9b0801c3c8d421cc5feb8744;hp=6286ed8a0a1838e49c4592e5770e02c4ab7f16df;hb=b9dfb1671626365019a72318fb131eb321244245;hpb=4100e49a2dffca1e81c487b4e02783d901569102 diff --git a/src/bin/lttng/commands/add_context.c b/src/bin/lttng/commands/add_context.c index 6286ed8a0..3cd00f3d3 100644 --- a/src/bin/lttng/commands/add_context.c +++ b/src/bin/lttng/commands/add_context.c @@ -368,7 +368,7 @@ static int add_context(char *session_name) } else if (opt_userspace) { dom.type = LTTNG_DOMAIN_UST; } else { - ERR("Please specify a tracer (-k/--kernel or -u/--userspace)"); + print_missing_domain(); ret = CMD_ERROR; goto error; }