sequence type: use previous field for length if length_name is NULL
[lttng-ust.git] / include / lttng / ust-tracepoint-event.h
index 654b367f173c7fa3c738e7f333e02bb3f539b823..586f59f9643cd392720cf0c81ce35986e1c0e482 100644 (file)
@@ -360,7 +360,7 @@ void lttng_ust__event_template_proto___##_provider##___##_name(LTTNG_UST__TP_ARG
                                .type = lttng_ust_type_sequence, \
                        },                                      \
                        .struct_size = sizeof(struct lttng_ust_type_sequence), \
-                       .length_name = "_" #_item "_length",    \
+                       .length_name = NULL,    /* Use previous field. */ \
                        .elem_type = lttng_ust_type_integer_define(_type, _byte_order, _elem_type_base), \
                        .alignment = 0,                         \
                        .encoding = lttng_ust_string_encoding_##_encoding, \
This page took 0.023049 seconds and 4 git commands to generate.