if (!comp_cls) {
BT_CLI_LOGE_APPEND_CAUSE(
"Cannot find component class: plugin-name=\"%s\", "
- "comp-cls-name=\"%s\", comp-cls-type=%d",
+ "comp-cls-name=\"%s\", comp-cls-type=%s",
cfg->cmd_data.query.cfg_component->plugin_name->str,
cfg->cmd_data.query.cfg_component->comp_cls_name->str,
- cfg->cmd_data.query.cfg_component->type);
+ bt_common_component_class_type_string(
+ cfg->cmd_data.query.cfg_component->type));
goto error;
}
if (ret) {
BT_CLI_LOGE_APPEND_CAUSE(
"Failed to query component class: %s: plugin-name=\"%s\", "
- "comp-cls-name=\"%s\", comp-cls-type=%d "
+ "comp-cls-name=\"%s\", comp-cls-type=%s "
"object=\"%s\"", fail_reason,
cfg->cmd_data.query.cfg_component->plugin_name->str,
cfg->cmd_data.query.cfg_component->comp_cls_name->str,
- cfg->cmd_data.query.cfg_component->type,
+ bt_common_component_class_type_string(
+ cfg->cmd_data.query.cfg_component->type),
cfg->cmd_data.query.object->str);
goto error;
}
if (!needed_comp_cls) {
BT_CLI_LOGE_APPEND_CAUSE(
"Cannot find component class: plugin-name=\"%s\", "
- "comp-cls-name=\"%s\", comp-cls-type=%d",
+ "comp-cls-name=\"%s\", comp-cls-type=%s",
cfg->cmd_data.help.cfg_component->plugin_name->str,
cfg->cmd_data.help.cfg_component->comp_cls_name->str,
- cfg->cmd_data.help.cfg_component->type);
+ bt_common_component_class_type_string(
+ cfg->cmd_data.help.cfg_component->type));
goto error;
}
if (!comp_cls) {
BT_CLI_LOGE_APPEND_CAUSE(
"Cannot find component class: plugin-name=\"%s\", "
- "comp-cls-name=\"%s\", comp-cls-type=%d",
+ "comp-cls-name=\"%s\", comp-cls-type=%s",
plugin_name, comp_cls_name,
- BT_COMPONENT_CLASS_TYPE_SOURCE);
+ bt_common_component_class_type_string(
+ BT_COMPONENT_CLASS_TYPE_SOURCE));
goto error;
}
if (!comp_cls) {
BT_CLI_LOGE_APPEND_CAUSE(
"Cannot find component class: plugin-name=\"%s\", "
- "comp-cls-name=\"%s\", comp-cls-type=%d",
+ "comp-cls-name=\"%s\", comp-cls-type=%s",
plugin_name, comp_cls_name,
- BT_COMPONENT_CLASS_TYPE_SOURCE);
+ bt_common_component_class_type_string(
+ BT_COMPONENT_CLASS_TYPE_SOURCE));
goto error;
}
if (!comp_cls) {
BT_CLI_LOGE_APPEND_CAUSE(
"Cannot find component class: plugin-name=\"%s\", "
- "comp-cls-name=\"%s\", comp-cls-type=%d",
- plugin_name, comp_cls_name, comp_cls_type);
+ "comp-cls-name=\"%s\", comp-cls-type=%s",
+ plugin_name, comp_cls_name,
+ bt_common_component_class_type_string(comp_cls_type));
status = -1;
goto end;
}
if (!comp_cls) {
BT_CLI_LOGE_APPEND_CAUSE(
"Cannot find component class: plugin-name=\"%s\", "
- "comp-cls-name=\"%s\", comp-cls-type=%d",
+ "comp-cls-name=\"%s\", comp-cls-type=%s",
cfg_comp->plugin_name->str,
cfg_comp->comp_cls_name->str,
- cfg_comp->type);
+ bt_common_component_class_type_string(cfg_comp->type));
goto error;
}
if (ret) {
BT_CLI_LOGE_APPEND_CAUSE(
"Cannot create component: plugin-name=\"%s\", "
- "comp-cls-name=\"%s\", comp-cls-type=%d, "
+ "comp-cls-name=\"%s\", comp-cls-type=%s, "
"comp-name=\"%s\"",
cfg_comp->plugin_name->str,
cfg_comp->comp_cls_name->str,
- cfg_comp->type, cfg_comp->instance_name->str);
+ bt_common_component_class_type_string(cfg_comp->type),
+ cfg_comp->instance_name->str);
goto error;
}
NULL,
descriptor->name,
cur_cc_descr_attr->comp_class_descriptor->name,
- bt_component_class_type_string(
+ bt_common_component_class_type_string(
cur_cc_descr_attr->comp_class_descriptor->type),
cur_cc_descr_attr->type_name,
cur_cc_descr_attr->type);
NULL,
descriptor->name,
cur_cc_descr_attr->comp_class_descriptor->name,
- bt_component_class_type_string(
+ bt_common_component_class_type_string(
cur_cc_descr_attr->comp_class_descriptor->type),
cur_cc_descr_attr->type_name,
cur_cc_descr_attr->type);
NULL,
descriptor->name,
cc_full_descr->descriptor->name,
- bt_component_class_type_string(
+ bt_common_component_class_type_string(
cc_full_descr->descriptor->type));
if (cc_full_descr->descriptor->type == BT_COMPONENT_CLASS_TYPE_SOURCE ||