event_class->emf_uri.str = NULL;
}
- BT_LOGD_STR("Putting context field classe.");
+ BT_LOGD_STR("Putting context field class.");
BT_OBJECT_PUT_REF_AND_RESET(event_class->specific_context_fc);
- BT_LOGD_STR("Putting payload field classe.");
+ BT_LOGD_STR("Putting payload field class.");
BT_OBJECT_PUT_REF_AND_RESET(event_class->payload_fc);
bt_object_pool_finalize(&event_class->event_pool);
g_free(obj);
BT_ASSERT_PRE_EVENT_CLASS_HOT(event_class);
BT_ASSERT_PRE(bt_field_class_get_type(field_class) ==
BT_FIELD_CLASS_TYPE_STRUCTURE,
- "Specific context field classe is not a structure field classe: "
+ "Specific context field class is not a structure field class: "
"%!+F", field_class);
stream_class = bt_event_class_borrow_stream_class_inline(
event_class);
event_class->specific_context_fc = field_class;
bt_object_get_no_null_check(event_class->specific_context_fc);
bt_field_class_freeze(field_class);
- BT_LIB_LOGV("Set event class's specific context field classe: %!+E",
+ BT_LIB_LOGV("Set event class's specific context field class: %!+E",
event_class);
end:
BT_ASSERT_PRE_EVENT_CLASS_HOT(event_class);
BT_ASSERT_PRE(bt_field_class_get_type(field_class) ==
BT_FIELD_CLASS_TYPE_STRUCTURE,
- "Payload field classe is not a structure field classe: %!+F",
+ "Payload field class is not a structure field class: %!+F",
field_class);
stream_class = bt_event_class_borrow_stream_class_inline(
event_class);
event_class->payload_fc = field_class;
bt_object_get_no_null_check(event_class->payload_fc);
bt_field_class_freeze(field_class);
- BT_LIB_LOGV("Set event class's payload field classe: %!+E", event_class);
+ BT_LIB_LOGV("Set event class's payload field class: %!+E", event_class);
end:
return ret;
BT_ASSERT_PRE(bt_stream_class_borrow_trace_class_inline(stream_class),
"Stream class is not part of a trace: %!+S", stream_class);
BT_ASSERT_PRE(stream_class->event_header_fc,
- "Stream class has no event header field classe: %!+S",
+ "Stream class has no event header field class: %!+S",
stream_class);
field_wrapper = bt_field_wrapper_create(
&stream_class->event_header_field_pool,
BT_ASSERT_PRE_EVENT_HOT(event);
stream_class = bt_event_class_borrow_stream_class_inline(event->class);
BT_ASSERT_PRE(stream_class->event_header_fc,
- "Stream class has no event header field classe: %!+S",
+ "Stream class has no event header field class: %!+S",
stream_class);
/* Recycle current header field: always exists */
if (!field_wrapper->field) {
field_wrapper->field = (void *) bt_field_create(fc);
if (!field_wrapper->field) {
- BT_LIB_LOGE("Cannot create field wrapper from field classe: "
+ BT_LIB_LOGE("Cannot create field wrapper from field class: "
"%![fc-]+F", fc);
goto error;
}
BT_ASSERT(bt_field_class_has_known_type(fc));
field = field_create_funcs[fc->type](fc);
if (!field) {
- BT_LIB_LOGE("Cannot create field object from field classe: "
+ BT_LIB_LOGE("Cannot create field object from field class: "
"%![fc-]+F", fc);
goto end;
}
"Stream class is not part of a trace class: %!+S",
stream_class);
BT_ASSERT_PRE(stream_class->packet_context_fc,
- "Stream class has no packet context field classe: %!+S",
+ "Stream class has no packet context field class: %!+S",
stream_class);
field_wrapper = bt_field_wrapper_create(
&stream_class->packet_context_field_pool,
BT_ASSERT_PRE_PACKET_HOT(packet);
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 classe: %!+T", tc);
+ "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: "
BT_ASSERT_PRE_HOT(packet, "Packet", ": %!+a", packet);
stream_class = packet->stream->class;
BT_ASSERT_PRE(stream_class->packet_context_fc,
- "Stream class has no packet context field classe: %!+S",
+ "Stream class has no packet context field class: %!+S",
stream_class);
BT_ASSERT_PRE(field_wrapper->field->class ==
stream_class->packet_context_fc,
if (!prev_fc) {
/*
* This is correct: the LCA is the root
- * scope field classe, which must be a
- * structure field classe.
+ * scope field class, which must be a
+ * structure field class.
*/
break;
}
tgt_fc, ctx);
if (!src_field_path) {
- BT_ASSERT_PRE_MSG("Cannot find requesting field classe in "
+ BT_ASSERT_PRE_MSG("Cannot find requesting field class in "
"resolving context: %!+F", src_fc);
is_valid = false;
goto end;
}
if (!tgt_field_path) {
- BT_ASSERT_PRE_MSG("Cannot find target field classe in "
+ BT_ASSERT_PRE_MSG("Cannot find target field class in "
"resolving context: %!+F", tgt_fc);
is_valid = false;
goto end;
/* Target must be before source */
if (!target_is_before_source(src_field_path, tgt_field_path)) {
- BT_ASSERT_PRE_MSG("Target field classe is located after "
- "requesting field classe: %![req-fc-]+F, %![tgt-fc-]+F",
+ BT_ASSERT_PRE_MSG("Target field class is located after "
+ "requesting field class: %![req-fc-]+F, %![tgt-fc-]+F",
src_fc, tgt_fc);
is_valid = false;
goto end;
*/
if (!target_field_path_in_different_scope_has_struct_fc_only(
src_field_path, tgt_field_path, ctx)) {
- BT_ASSERT_PRE_MSG("Target field classe is located in a "
- "different scope than requesting field classe, "
- "but within an array or a variant field classe: "
+ BT_ASSERT_PRE_MSG("Target field class is located in a "
+ "different scope than requesting field class, "
+ "but within an array or a variant field class: "
"%![req-fc-]+F, %![tgt-fc-]+F",
src_fc, tgt_fc);
is_valid = false;
goto end;
}
- /* Same scope: LCA must be a structure field classe */
+ /* Same scope: LCA must be a structure field class */
if (!lca_is_structure_field_class(src_field_path, tgt_field_path, ctx)) {
BT_ASSERT_PRE_MSG("Lowest common ancestor of target and "
- "requesting field classes is not a structure field classe: "
+ "requesting field classes is not a structure field class: "
"%![req-fc-]+F, %![tgt-fc-]+F",
src_fc, tgt_fc);
is_valid = false;
if (!lca_to_target_has_struct_fc_only(src_field_path, tgt_field_path,
ctx)) {
BT_ASSERT_PRE_MSG("Path from lowest common ancestor of target "
- "and requesting field classes to target field classe "
- "contains an array or a variant field classe: "
+ "and requesting field classes to target field class "
+ "contains an array or a variant field class: "
"%![req-fc-]+F, %![tgt-fc-]+F", src_fc, tgt_fc);
is_valid = false;
goto end;
struct bt_resolve_field_path_context *ctx)
{
BT_ASSERT_PRE(field_path_is_valid(src_fc, tgt_fc, ctx),
- "Invalid target field classe: %![req-fc-]+F, %![tgt-fc-]+F",
+ "Invalid target field class: %![req-fc-]+F, %![tgt-fc-]+F",
src_fc, tgt_fc);
return find_field_class_in_ctx(tgt_fc, ctx);
}
stream_class->name.value = NULL;
}
- BT_LOGD_STR("Putting event header field classe.");
+ BT_LOGD_STR("Putting event header field class.");
BT_OBJECT_PUT_REF_AND_RESET(stream_class->event_header_fc);
- BT_LOGD_STR("Putting packet context field classe.");
+ BT_LOGD_STR("Putting packet context field class.");
BT_OBJECT_PUT_REF_AND_RESET(stream_class->packet_context_fc);
- BT_LOGD_STR("Putting event common context field classe.");
+ BT_LOGD_STR("Putting event common context field class.");
BT_OBJECT_PUT_REF_AND_RESET(stream_class->event_common_context_fc);
bt_object_pool_finalize(&stream_class->event_header_field_pool);
bt_object_pool_finalize(&stream_class->packet_context_field_pool);
BT_ASSERT_PRE_STREAM_CLASS_HOT(stream_class);
BT_ASSERT_PRE(bt_field_class_get_type(field_class) ==
BT_FIELD_CLASS_TYPE_STRUCTURE,
- "Packet context field classe is not a structure field classe: %!+F",
+ "Packet context field class is not a structure field class: %!+F",
field_class);
resolve_ctx.packet_header =
bt_stream_class_borrow_trace_class_inline(stream_class)->packet_header_fc;
stream_class->packet_context_fc = field_class;
bt_object_get_no_null_check(stream_class->packet_context_fc);
bt_field_class_freeze(field_class);
- BT_LIB_LOGV("Set stream class's packet context field classe: %!+S",
+ BT_LIB_LOGV("Set stream class's packet context field class: %!+S",
stream_class);
end:
BT_ASSERT_PRE_STREAM_CLASS_HOT(stream_class);
BT_ASSERT_PRE(bt_field_class_get_type(field_class) ==
BT_FIELD_CLASS_TYPE_STRUCTURE,
- "Event header field classe is not a structure field classe: %!+F",
+ "Event header field class is not a structure field class: %!+F",
field_class);
resolve_ctx.packet_header =
bt_stream_class_borrow_trace_class_inline(stream_class)->packet_header_fc;
stream_class->event_header_fc = field_class;
bt_object_get_no_null_check(stream_class->event_header_fc);
bt_field_class_freeze(field_class);
- BT_LIB_LOGV("Set stream class's event header field classe: %!+S",
+ BT_LIB_LOGV("Set stream class's event header field class: %!+S",
stream_class);
end:
BT_ASSERT_PRE_STREAM_CLASS_HOT(stream_class);
BT_ASSERT_PRE(bt_field_class_get_type(field_class) ==
BT_FIELD_CLASS_TYPE_STRUCTURE,
- "Event common context field classe is not a structure field classe: %!+F",
+ "Event common context field class is not a structure field class: %!+F",
field_class);
resolve_ctx.packet_header =
bt_stream_class_borrow_trace_class_inline(stream_class)->packet_header_fc;
stream_class->event_common_context_fc = field_class;
bt_object_get_no_null_check(stream_class->event_common_context_fc);
bt_field_class_freeze(field_class);
- BT_LIB_LOGV("Set stream class's event common context field classe: %!+S",
+ BT_LIB_LOGV("Set stream class's event common context field class: %!+S",
stream_class);
end:
tc->stream_classes = NULL;
}
- BT_LOGD_STR("Putting packet header field classe.");
+ BT_LOGD_STR("Putting packet header field class.");
bt_object_put_ref(tc->packet_header_fc);
tc->packet_header_fc = NULL;
g_free(tc);
BT_ASSERT_PRE_TRACE_CLASS_HOT(tc);
BT_ASSERT_PRE(bt_field_class_get_type(field_class) ==
BT_FIELD_CLASS_TYPE_STRUCTURE,
- "Packet header field classe is not a structure field classe: %!+F",
+ "Packet header field class is not a structure field class: %!+F",
field_class);
ret = bt_resolve_field_paths(field_class, &resolve_ctx);
if (ret) {
tc->packet_header_fc = field_class;
bt_object_get_no_null_check(tc->packet_header_fc);
bt_field_class_freeze(field_class);
- BT_LIB_LOGV("Set trace class's packet header field classe: %!+T", tc);
+ BT_LIB_LOGV("Set trace class's packet header field class: %!+T", tc);
end:
return ret;
BT_HIDDEN
void _bt_trace_class_freeze(const struct bt_trace_class *tc)
{
- /* The packet header field classe is already frozen */
+ /* The packet header field class is already frozen */
BT_ASSERT(tc);
BT_LIB_LOGD("Freezing trace class: %!+T", tc);
((struct bt_trace_class *) tc)->frozen = true;
BT_HIDDEN
void _bt_trace_freeze(const struct bt_trace *trace)
{
- /* The packet header field classe is already frozen */
+ /* The packet header field class is already frozen */
BT_ASSERT(trace);
BT_LIB_LOGD("Freezing trace's class: %!+T", trace->class);
bt_trace_class_freeze(trace->class);