Skip to content

Commit c570480

Browse files
author
Jyri Sarha
committed
modules: Better mod_alloc_align() failure prints
Remove the remains of function name from the prints and in case of heap allocation failure, print all available related parameters. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent 8461592 commit c570480

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/audio/module_adapter/module/generic.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ void *mod_alloc_align(struct processing_module *mod, uint32_t size, uint32_t ali
188188
ptr = rmalloc_align(SOF_MEM_FLAG_USER, size, alignment);
189189

190190
if (!ptr) {
191-
comp_err(mod->dev, "failed to allocate memory.");
191+
comp_err(mod->dev, "Failed to alloc %d bytes %d alignment for comp %x.",
192+
size, alignment, dev_comp_id(mod->dev));
192193
container_put(mod, container);
193194
return NULL;
194195
}

0 commit comments

Comments
 (0)