From: Jonathan Rajotte Date: Fri, 18 Mar 2016 22:25:23 +0000 (-0400) Subject: Fix: Use get_domain_str on add context X-Git-Tag: v2.9.0-rc1~295 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=0df4a6dd0b4fd499d85ad184bbf238c175fb1d48;ds=inline Fix: Use get_domain_str on add context Fixes #1006 Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/add_context.c b/src/bin/lttng/commands/add_context.c index f19a54e67..8f8aa3012 100644 --- a/src/bin/lttng/commands/add_context.c +++ b/src/bin/lttng/commands/add_context.c @@ -605,11 +605,11 @@ static int add_context(char *session_name) } else { if (opt_channel_name) { MSG("%s context %s added to channel %s", - opt_kernel ? "kernel" : "UST", type->opt->symbol, + get_domain_str(dom.type), type->opt->symbol, opt_channel_name); } else { MSG("%s context %s added to all channels", - opt_kernel ? "kernel" : "UST", type->opt->symbol) + get_domain_str(dom.type), type->opt->symbol) } success = 1; }