From 866a2657321190fbcfbaea9e398eb3aad654a1e7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Tue, 1 Sep 2015 11:58:38 -0400 Subject: [PATCH] Only display agent loglevel if the loglevel type is not ALL MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- src/bin/lttng/commands/list.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) 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(""); -- 2.34.1