From: Hans Verkuil Date: Thu, 24 Oct 2024 11:24:35 +0000 (+0200) Subject: media: vb2: fix confusing log message X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5c73563a212f015cb0fe8fc6f7ffb7147f64a2f7;p=users%2Fjedix%2Flinux-maple.git media: vb2: fix confusing log message 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 Reviewed-by: Nicolas Dufresne Acked-by: Tomasz Figa --- 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; }