}
if (canceled) {
- BT_LOGI("Canceled by user before executing the query: "
+ BT_CLI_LOGW_APPEND_CAUSE(
+ "Canceled by user before executing the query: "
"comp-cls-addr=%p, comp-cls-name=\"%s\", "
"query-obj=\"%s\"", comp_cls,
bt_component_class_get_name(comp_cls), obj);
if (usleep(sleep_time_us)) {
if (bt_query_executor_is_canceled(the_query_executor)) {
- BT_LOGI("Query was canceled by user: "
+ BT_CLI_LOGW_APPEND_CAUSE(
+ "Query was canceled by user: "
"comp-cls-addr=%p, comp-cls-name=\"%s\", "
"query-obj=\"%s\"", comp_cls,
bt_component_class_get_name(comp_cls),
const struct port_id *id1 = v1;
const struct port_id *id2 = v2;
- return !strcmp(id1->instance_name, id2->instance_name) &&
- !strcmp(id1->port_name, id2->port_name);
+ return strcmp(id1->instance_name, id2->instance_name) == 0 &&
+ strcmp(id1->port_name, id2->port_name) == 0;
}
static
case BT_GRAPH_CONNECT_PORTS_STATUS_OK:
break;
case BT_GRAPH_CONNECT_PORTS_STATUS_CANCELED:
- BT_LOGI_STR("Graph was canceled by user.");
+ BT_CLI_LOGW_APPEND_CAUSE("Graph was canceled by user.");
break;
default:
BT_CLI_LOGE_APPEND_CAUSE(
}
if (canceled) {
- BT_LOGI_STR("Canceled by user before creating components.");
+ BT_CLI_LOGW_APPEND_CAUSE(
+ "Canceled by user before creating components.");
goto error;
}
}
if (canceled) {
- BT_LOGI_STR("Canceled by user before connecting components.");
+ BT_CLI_LOGW_APPEND_CAUSE(
+ "Canceled by user before connecting components.");
goto error;
}
}
if (canceled) {
- BT_LOGI_STR("Canceled by user before running the graph.");
+ BT_CLI_LOGW_APPEND_CAUSE(
+ "Canceled by user before running the graph.");
goto error;
}
case BT_GRAPH_RUN_STATUS_OK:
break;
case BT_GRAPH_RUN_STATUS_CANCELED:
- BT_LOGI_STR("Graph was canceled by user.");
+ BT_CLI_LOGW_APPEND_CAUSE("Graph was canceled by user.");
goto error;
case BT_GRAPH_RUN_STATUS_AGAIN:
if (bt_graph_is_canceled(ctx.graph)) {
- BT_LOGI_STR("Graph was canceled by user.");
+ BT_CLI_LOGW_APPEND_CAUSE(
+ "Graph was canceled by user.");
goto error;
}
if (usleep(cfg->cmd_data.run.retry_duration_us)) {
if (bt_graph_is_canceled(ctx.graph)) {
- BT_LOGI_STR("Graph was canceled by user.");
+ BT_CLI_LOGW_APPEND_CAUSE(
+ "Graph was canceled by user.");
goto error;
}
}
if (g_file_test(cfg->command_name,
G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR)) {
_bt_log_write_d(_BT_LOG_SRCLOC_FUNCTION, __FILE__, __LINE__,
- BT_LOG_WARN, BT_LOG_TAG,
+ BT_LOG_WARNING, BT_LOG_TAG,
"The `%s` command was executed. "
"If you meant to convert a trace located in "
"the local `%s` directory, please use:\n\n"