mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-07 22:42:04 +00:00
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>
This commit is contained in:
parent
5d6d950fef
commit
5c73563a21
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user