Skip to content

Commit eea391f

Browse files
author
Jyri Sarha
committed
ipc4: helper: Print module IDs as hex
Print all module IDs hex for better readability. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent a72c6bd commit eea391f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ipc/ipc4/helper.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ __cold int ipc_comp_connect(struct ipc *ipc, ipc_pipe_comp_connect *_connect)
581581
buffer = ipc4_create_buffer(source, cross_core_bind, buf_size, bu->extension.r.src_queue,
582582
bu->extension.r.dst_queue);
583583
if (!buffer) {
584-
tr_err(&ipc_tr, "failed to allocate buffer to bind %d to %d", src_id, sink_id);
584+
tr_err(&ipc_tr, "failed to allocate buffer to bind %#x to %#x", src_id, sink_id);
585585
return IPC4_OUT_OF_MEMORY;
586586
}
587587

@@ -646,14 +646,14 @@ __cold int ipc_comp_connect(struct ipc *ipc, ipc_pipe_comp_connect *_connect)
646646
ret = comp_buffer_connect(source, source->ipc_config.core, buffer,
647647
PPL_CONN_DIR_COMP_TO_BUFFER);
648648
if (ret < 0) {
649-
tr_err(&ipc_tr, "failed to connect src %d to internal buffer", src_id);
649+
tr_err(&ipc_tr, "failed to connect src %#x to internal buffer", src_id);
650650
goto free;
651651
}
652652

653653
ret = comp_buffer_connect(sink, sink->ipc_config.core, buffer,
654654
PPL_CONN_DIR_BUFFER_TO_COMP);
655655
if (ret < 0) {
656-
tr_err(&ipc_tr, "failed to connect internal buffer to sink %d", sink_id);
656+
tr_err(&ipc_tr, "failed to connect internal buffer to sink %#x", sink_id);
657657
goto e_sink_connect;
658658
}
659659

@@ -1043,7 +1043,7 @@ __cold const struct comp_driver *ipc4_get_comp_drv(uint32_t module_id)
10431043
mod = lib_manager_get_module_manifest(module_id);
10441044

10451045
if (!mod) {
1046-
tr_err(&comp_tr, "Error: Couldn't find loadable module with id %d.",
1046+
tr_err(&comp_tr, "Error: Couldn't find loadable module with id %#x.",
10471047
module_id);
10481048
return NULL;
10491049
}

0 commit comments

Comments
 (0)