- trace = bt_stream_class_borrow_trace_inline(packet->stream->class);
- BT_ASSERT_PRE(trace->packet_header_ft,
- "Trace has no packet header field type: %!+t",
- trace);
- BT_ASSERT_PRE(field_wrapper->field->type ==
- trace->packet_header_ft,
- "Unexpected packet header field's type: "
- "%![ft-]+F, %![expected-ft-]+F", field_wrapper->field->type,
- trace->packet_header_ft);
+ tc = bt_stream_class_borrow_trace_class_inline(packet->stream->class);
+ BT_ASSERT_PRE(tc->packet_header_fc,
+ "Trace class has no packet header field class: %!+T", tc);
+ BT_ASSERT_PRE(field_wrapper->field->class ==
+ tc->packet_header_fc,
+ "Unexpected packet header field's class: "
+ "%![fc-]+F, %![expected-fc-]+F", field_wrapper->field->class,
+ tc->packet_header_fc);