Only display agent loglevel if the loglevel type is not ALL
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 1 Sep 2015 15:58:38 +0000 (11:58 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Sep 2015 13:07:39 +0000 (09:07 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/list.c

index f7f3852b3b93ca8998ae0b9fb2daee8cc468ade2..7d0781f6f770fd99af756146f58ca01d6c7c3551 100644 (file)
@@ -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("");
This page took 0.026749 seconds and 4 git commands to generate.