lttng-ust(3): Fix wrong len_type for sequence
authorOlivier Dion <odion@efficios.com>
Thu, 21 Mar 2024 18:42:13 +0000 (14:42 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 21 Mar 2024 19:15:14 +0000 (15:15 -0400)
`len_type' of a sequence field must be of type unsigned integer. Some
provided examples in the man page were incorrectly using a type signed
integer, resulting in correct compilation, but error while decoding.

Change-Id: Icc685b330d0704660b36f703075f453d71c5e4cb
Signed-off-by: Olivier Dion <odion@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
doc/man/lttng-ust.3.txt

index 0924a4de2dc7d65c411951293598ab0baafd22e6..ab33e4dd976f328a7273b9a6d2992434a1ffeab2 100644 (file)
@@ -1322,10 +1322,10 @@ LTTNG_UST_TRACEPOINT_EVENT(
         lttng_ust_field_array(int, array_field, array_arg, 7)
         lttng_ust_field_array_text(char, array_text_field,
                                    array_arg, 5)
-        lttng_ust_field_sequence(int, seq_field, array_arg, int,
+        lttng_ust_field_sequence(int, seq_field, array_arg, unsigned int,
                                  my_integer_arg / 10)
         lttng_ust_field_sequence_text(char, seq_text_field,
-                                      array_arg, int,
+                                      array_arg, unsigned int,
                                       my_integer_arg / 5)
         lttng_ust_field_enum(my_provider, my_enum, int,
                              enum_field, array_arg[1])
This page took 0.02613 seconds and 4 git commands to generate.