Fix: remove break in lttng cmdline session listing
[lttng-tools.git] / src / bin / lttng / commands / list.c
index e3ff4f1bac7d422f911e0f53e125060bb4b30137..96ccdb039e53ef2d9e84609c75f087f7243f2480 100644 (file)
@@ -1251,7 +1251,6 @@ static int list_sessions(const char *session_name)
                /* Pretty print */
                if (count == 0) {
                        MSG("Currently no available tracing session");
-                       ret = CMD_ERROR;
                        goto end;
                }
 
@@ -1278,7 +1277,6 @@ static int list_sessions(const char *session_name)
                                MSG("%sTrace path: %s", indent4, sessions[i].path);
                                MSG("%sLive timer interval (usec): %u\n", indent4,
                                                sessions[i].live_timer_interval);
-                               break;
                        }
                }
 
@@ -1464,7 +1462,7 @@ int cmd_list(int argc, const char **argv)
        } else if (opt_jul) {
                DBG2("Listing JUL domain");
                domain.type = LTTNG_DOMAIN_JUL;
-       } else if (opt_jul) {
+       } else if (opt_log4j) {
                domain.type = LTTNG_DOMAIN_LOG4J;
        }
 
This page took 0.023203 seconds and 4 git commands to generate.