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, 1 Sep 2015 16:03:08 +0000 (12:03 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/list.c

index f43ee167ab535fd190fbedc75b60db7e8ebc5381..13a5d91f3ca2668125369ca982e979b19f857514 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.026441 seconds and 4 git commands to generate.