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:14:49 +0000 (15:14 -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 081388961f4994553a4b80083c4e0427ed5a1af4..23d31cacaeb681c119e6df75441d636165fa6775 100644 (file)
@@ -1325,10 +1325,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.027167 seconds and 4 git commands to generate.