pipeline: graph: Use hex format for component IDs in graph logs

Update the logging statements in pipeline-graph.c to display component IDs
in hexadecimal format. This change ensures consistency with other logging
within the system and improves the clarity of the logs when tracking
component IDs during debugging sessions.

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
This commit is contained in:
Tomasz Leman 2024-03-20 15:25:09 +01:00 committed by Liam Girdwood
parent 4a6ca60060
commit d534df477f
1 changed files with 3 additions and 3 deletions

View File

@ -252,7 +252,7 @@ static int pipeline_comp_complete(struct comp_dev *current,
{ {
struct pipeline_data *ppl_data = ctx->comp_data; struct pipeline_data *ppl_data = ctx->comp_data;
pipe_dbg(ppl_data->p, "pipeline_comp_complete(), current->comp.id = %u, dir = %u", pipe_dbg(ppl_data->p, "pipeline_comp_complete(), current->comp.id = 0x%x, dir = %u",
dev_comp_id(current), dir); dev_comp_id(current), dir);
if (!comp_is_single_pipeline(current, ppl_data->start)) { if (!comp_is_single_pipeline(current, ppl_data->start)) {
@ -327,7 +327,7 @@ static int pipeline_comp_reset(struct comp_dev *current,
int is_same_sched = pipeline_is_same_sched_comp(p_current, p); int is_same_sched = pipeline_is_same_sched_comp(p_current, p);
int err; int err;
pipe_dbg(p_current, "pipeline_comp_reset(), current->comp.id = %u, dir = %u", pipe_dbg(p_current, "pipeline_comp_reset(), current->comp.id = 0x%x, dir = %u",
dev_comp_id(current), dir); dev_comp_id(current), dir);
/* /*
@ -377,7 +377,7 @@ int pipeline_reset(struct pipeline *p, struct comp_dev *host)
ret = walk_ctx.comp_func(host, NULL, &walk_ctx, host->direction); ret = walk_ctx.comp_func(host, NULL, &walk_ctx, host->direction);
if (ret < 0) { if (ret < 0) {
pipe_err(p, "pipeline_reset(): ret = %d, host->comp.id = %u", pipe_err(p, "pipeline_reset(): ret = %d, host->comp.id = 0x%x",
ret, dev_comp_id(host)); ret, dev_comp_id(host));
} else { } else {
/* pipeline is reset to default state */ /* pipeline is reset to default state */