On Thu Oct 24 13:24:35 2024 +0200, Hans Verkuil wrote: > If the number of allocated buffers is less than q->min_queued_buffers, > then a debug message was logged saying that it needs at least that > many queued buffers. But the test is about allocated buffers. > > Update the message to say "allocated buffers". > > Signed-off-by: Hans Verkuil <hverk...@xs4all.nl> > Reviewed-by: Nicolas Dufresne <nicolas.dufre...@collabora.com> > Acked-by: Tomasz Figa <tf...@chromium.org>
Patch committed. Thanks, Hans Verkuil drivers/media/common/videobuf2/videobuf2-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- diff --git a/drivers/media/common/videobuf2/videobuf2-core.c b/drivers/media/common/videobuf2/videobuf2-core.c index d2275c878ea9..f07dc53a9d06 100644 --- a/drivers/media/common/videobuf2/videobuf2-core.c +++ b/drivers/media/common/videobuf2/videobuf2-core.c @@ -2329,7 +2329,7 @@ int vb2_core_streamon(struct vb2_queue *q, unsigned int type) } if (q_num_bufs < q->min_queued_buffers) { - dprintk(q, 1, "need at least %u queued buffers\n", + dprintk(q, 1, "need at least %u allocated buffers\n", q->min_queued_buffers); return -EINVAL; }