Add LTTNG_EVENT_EXCLUSION_NAME_AT() helper macro
[lttng-tools.git] / src / bin / lttng-sessiond / save.c
index 3df1f2828f17d275efcc69930030d1bd4cd25936..a6fea46ce55e5e9d3dcca669bf4bd1d8839ce1f4 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <common/defaults.h>
 #include <common/error.h>
-#include <common/config/config.h>
+#include <common/config/session-config.h>
 #include <common/utils.h>
 #include <common/runas.h>
 #include <lttng/save-internal.h>
@@ -674,7 +674,8 @@ int save_ust_event(struct config_writer *writer,
                for (i = 0; i < event->exclusion->count; i++) {
                        ret = config_writer_write_element_string(writer,
                                config_element_exclusion,
-                               &event->exclusion->names[0][i]);
+                               LTTNG_EVENT_EXCLUSION_NAME_AT(
+                                       event->exclusion, i));
                        if (ret) {
                                ret = LTTNG_ERR_SAVE_IO_FAIL;
                                goto end;
This page took 0.023947 seconds and 4 git commands to generate.