From: Jérémie Galarneau Date: Tue, 1 Sep 2015 15:58:38 +0000 (-0400) Subject: Only display agent loglevel if the loglevel type is not ALL X-Git-Tag: v2.8.0-rc1~438 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=755066c271c15091a9fad9e065a05970733f5593;p=lttng-tools.git Only display agent loglevel if the loglevel type is not ALL Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index f43ee167a..13a5d91f3 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -985,11 +985,21 @@ static int list_session_agent_events(void) } for (i = 0; i < count; i++) { - MSG("%s- %s%s (loglevel%s %s)", indent4, events[i].name, - enabled_string(events[i].enabled), - logleveltype_string(events[i].loglevel_type), - mi_lttng_loglevel_string(events[i].loglevel, - handle->domain.type)); + if (events[i].loglevel_type != + LTTNG_EVENT_LOGLEVEL_ALL) { + MSG("%s- %s%s (loglevel%s %s)", indent4, + events[i].name, + enabled_string( + events[i].enabled), + logleveltype_string( + events[i].loglevel_type), + mi_lttng_loglevel_string( + events[i].loglevel, + handle->domain.type)); + } else { + MSG("%s- %s%s", indent4, events[i].name, + enabled_string(events[i].enabled)); + } } MSG("");