Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / bin / lttng / commands / list.c
index 4f4fcb5ef09c898157bbaa25a86fd88aea8de9b7..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);
 
This page took 0.025341 seconds and 4 git commands to generate.