From: Olivier Dion Date: Thu, 21 Mar 2024 18:42:13 +0000 (-0400) Subject: lttng-ust(3): Fix wrong len_type for sequence X-Git-Tag: v2.12.10~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6b0c6b76480d8162cb00919367cc2d13ccbe7037;p=lttng-ust.git lttng-ust(3): Fix wrong len_type for sequence `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 Signed-off-by: Mathieu Desnoyers --- diff --git a/doc/man/lttng-ust.3.txt b/doc/man/lttng-ust.3.txt index 507aaca5..02c94836 100644 --- a/doc/man/lttng-ust.3.txt +++ b/doc/man/lttng-ust.3.txt @@ -1204,10 +1204,10 @@ TRACEPOINT_EVENT( ctf_string(string_field, my_string_arg) ctf_array(int, array_field, array_arg, 7) ctf_array_text(char, array_text_field, array_arg, 5) - ctf_sequence(int, seq_field, array_arg, int, + ctf_sequence(int, seq_field, array_arg, unsigned int, my_integer_arg / 10) ctf_sequence_text(char, seq_text_field, array_arg, - int, my_integer_arg / 5) + unsigned int, my_integer_arg / 5) ctf_enum(my_provider, my_enum, int, enum_field, array_arg[1]) )