From: Sylwester Nawrocki Date: Mon, 26 Aug 2013 14:47:53 +0000 (-0300) Subject: [media] videobuf2: Add debug print for the output buffer plane lengths checks X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3a9621b0c5428c5e9a3ef217ed4921046de1b021;p=openwrt%2Fstaging%2Fblogic.git [media] videobuf2: Add debug print for the output buffer plane lengths checks Add debug print so it's easier to find any errors resulting from the planes' configuration checks added in commit 8023ed09cb278004a2 "videobuf2-core: Verify planes lengths for output buffers". Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park Acked-by: Laurent Pinchart Acked-by: Marek Szyprowski Signed-off-by: Sylwester Nawrocki Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core.c index ba389f58eec7..fc8af507beac 100644 --- a/drivers/media/v4l2-core/videobuf2-core.c +++ b/drivers/media/v4l2-core/videobuf2-core.c @@ -1207,8 +1207,11 @@ static int __buf_prepare(struct vb2_buffer *vb, const struct v4l2_buffer *b) int ret; ret = __verify_length(vb, b); - if (ret < 0) + if (ret < 0) { + dprintk(1, "%s(): plane parameters verification failed: %d\n", + __func__, ret); return ret; + } switch (q->memory) { case V4L2_MEMORY_MMAP: