diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2024-10-24 13:24:35 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2024-10-28 15:35:56 +0100 |
commit | 5c73563a212f015cb0fe8fc6f7ffb7147f64a2f7 (patch) | |
tree | 5396d4dd92a094df1679166be4c22bf61a2d399f | |
parent | media: vb2: Fix comment (diff) | |
download | linux-5c73563a212f015cb0fe8fc6f7ffb7147f64a2f7.tar.xz linux-5c73563a212f015cb0fe8fc6f7ffb7147f64a2f7.zip |
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 <hverkuil@xs4all.nl>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Acked-by: Tomasz Figa <tfiga@chromium.org>
-rw-r--r-- | drivers/media/common/videobuf2/videobuf2-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |