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.7.0-rc2~112 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=866a2657321190fbcfbaea9e398eb3aad654a1e7;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 f7f3852b3..7d0781f6f 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("");