Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / bin / lttng / commands / list.c
index a2db7e6b14c6ff029013862ecb9f0e02fa79076b..f4c97cbd1c345d669f5d95ee84b655ade3f51367 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <assert.h>
 
 #include <common/mi-lttng.h>
 #include <common/time.h>
 #include <common/tracker.h>
+#include <lttng/domain-internal.h>
 #include <lttng/lttng.h>
 
 #include "../command.h"
@@ -425,7 +425,7 @@ static void print_events(struct lttng_event *event)
                /* Fall-through. */
        default:
                /* We should never have "all" events in list. */
-               assert(0);
+               abort();
                break;
        }
 
@@ -576,7 +576,7 @@ static int list_agent_events(void)
                goto error;
        }
 
-       agent_domain_str = get_domain_str(domain.type);
+       agent_domain_str = lttng_domain_type_str(domain.type);
 
        DBG("Getting %s tracing events", agent_domain_str);
 
@@ -2128,19 +2128,19 @@ static int list_sessions(const char *session_name)
        } else {
                /* Pretty print */
                if (count == 0) {
-                       MSG("Currently no available tracing session");
+                       MSG("Currently no available recording session");
                        goto end;
                }
 
                if (session_name == NULL) {
-                       MSG("Available tracing sessions:");
+                       MSG("Available recording sessions:");
                }
 
                for (i = 0; i < count; i++) {
                        if (session_name != NULL) {
                                if (strncmp(sessions[i].name, session_name, NAME_MAX) == 0) {
                                        session_found = 1;
-                                       MSG("Tracing session %s: [%s%s]", session_name,
+                                       MSG("Recording session %s: [%s%s]", session_name,
                                                        active_string(sessions[i].enabled),
                                                        snapshot_string(sessions[i].snapshot_mode));
                                        if (*sessions[i].path) {
This page took 0.024037 seconds and 4 git commands to generate.