Fix: Use get_domain_str on add context
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 18 Mar 2016 22:25:23 +0000 (18:25 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 20 May 2016 19:25:33 +0000 (15:25 -0400)
Fixes #1006

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/add_context.c

index 1fce4428c8377b95624a8531cd5106d6b8a0f8be..2311dfa20fdcc08c34ee2891d7c6ffeb810fa03f 100644 (file)
@@ -628,11 +628,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;
                }
This page took 0.025982 seconds and 4 git commands to generate.