Skip to content

Commit 08baca4

Browse files
committed
dmaengine: print more meaningful error message
error log for dma_channel_table_init() failure pointed a mere "initialization failure", which is not very helpful message, so print additional details like function name and error code. Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 83c7794 commit 08baca4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/dma/dmaengine.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static int __init dma_channel_table_init(void)
206206
}
207207

208208
if (err) {
209-
pr_err("initialization failure\n");
209+
pr_err("dmaengine dma_channel_table_init failure: %d\n", err);
210210
for_each_dma_cap_mask(cap, dma_cap_mask_all)
211211
free_percpu(channel_table[cap]);
212212
}

0 commit comments

Comments
 (0)