Skip to content

Commit 73586f5

Browse files
committed
audio: kpb: log the requested history buffer size on error
When failing to allocate a history buffer, log the original requested size. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent 5021a7b commit 73586f5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/audio/kpb.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,8 @@ static int kpb_prepare(struct comp_dev *dev)
853853

854854
/* Have we allocated what we requested? */
855855
if (kpb->hd.buffer_size < hb_size_req) {
856-
comp_cl_err(&comp_kpb, "failed to allocate space for KPB buffer");
856+
comp_cl_err(&comp_kpb, "failed to allocate %zu for KPB buffer",
857+
hb_size_req);
857858
kpb_free_history_buffer(kpb->hd.c_hb);
858859
kpb->hd.c_hb = NULL;
859860
kpb->hd.buffer_size = 0;

0 commit comments

Comments
 (0)