Skip to content

Commit

Permalink
pipeline: graph: Use hex format for component IDs in graph logs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tmleman committed Mar 20, 2024
1 parent c231822 commit 79c129c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/audio/pipeline/pipeline-graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ static int pipeline_comp_complete(struct comp_dev *current,
{
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);

if (!comp_is_single_pipeline(current, ppl_data->start)) {
Expand Down Expand Up @@ -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 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);

/*
Expand Down Expand Up @@ -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);
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));
} else {
/* pipeline is reset to default state */
Expand Down

0 comments on commit 79c129c

Please sign in to comment.