Skip to content

Commit f73015f

Browse files
committed
fix array static
1 parent 5a5bf92 commit f73015f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎utils/gen_babeltrace_model_helper.rb‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ def gen_bt_field_model(lttng_name, type, name, lttng)
5050
when 'ctf_array', 'ctf_array_hex'
5151
array_type = lttng.type.to_s
5252
field[:class] = 'array_static'
53-
field[:field] =
54-
{ class: integer_signed?(array_type) ? 'signed' : 'unsigned',
55-
class_properties: { field_value_range: integer_size(array_type) } }
56-
field[:field][:class_properties][:preferred_display_base] = 16 if lttng_name.end_with?('_hex')
53+
field[:element_field_class] =
54+
{ type: integer_signed?(array_type) ? 'integer_signed' : 'integer_unsigned',
55+
field_value_range: integer_size(array_type) }
56+
field[:element_field_class][:preferred_display_base] = 16 if lttng_name.end_with?('_hex')
5757
field[:length] = lttng.length
5858
when 'ctf_string'
5959
field[:type] = 'string'

0 commit comments

Comments
 (0)