From: David Goulet Date: Thu, 10 Jul 2014 19:40:36 +0000 (-0400) Subject: Fix: don't print channel name on enable JUL event X-Git-Tag: v2.6.0-rc1~153 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=49ceaa707d6fd92526e6afb4beeca7bb77409fe2;p=lttng-tools.git Fix: don't print channel name on enable JUL event Fixes #802 Signed-off-by: David Goulet --- diff --git a/src/bin/lttng/commands/enable_events.c b/src/bin/lttng/commands/enable_events.c index bd2d99785..1547d7086 100644 --- a/src/bin/lttng/commands/enable_events.c +++ b/src/bin/lttng/commands/enable_events.c @@ -890,10 +890,17 @@ static int enable_events(char *session_name) } warn = 1; } else { - MSG("%s event %s%s created in channel %s", - get_domain_str(dom.type), event_name, - exclusion_string, - print_channel_name(channel_name)); + /* So we don't print the default channel name for JUL. */ + if (dom.type == LTTNG_DOMAIN_JUL) { + MSG("%s event %s%s enabled.", + get_domain_str(dom.type), event_name, + exclusion_string); + } else { + MSG("%s event %s%s created in channel %s", + get_domain_str(dom.type), event_name, + exclusion_string, + print_channel_name(channel_name)); + } } free(exclusion_string); }