aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/v4l2-core
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2013-08-26 10:47:53 -0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-09-26 06:34:41 -0400
commit3a9621b0c5428c5e9a3ef217ed4921046de1b021 (patch)
tree8f762dc7b6addc685fb2f6edc3fdab32fc20d221 /drivers/media/v4l2-core
parent2484a7e2bdb4ed50393fa57075d43ca67801fe06 (diff)
[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 <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/v4l2-core')
-rw-r--r--drivers/media/v4l2-core/videobuf2-core.c5
1 files changed, 4 insertions, 1 deletions
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)
1207 int ret; 1207 int ret;
1208 1208
1209 ret = __verify_length(vb, b); 1209 ret = __verify_length(vb, b);
1210 if (ret < 0) 1210 if (ret < 0) {
1211 dprintk(1, "%s(): plane parameters verification failed: %d\n",
1212 __func__, ret);
1211 return ret; 1213 return ret;
1214 }
1212 1215
1213 switch (q->memory) { 1216 switch (q->memory) {
1214 case V4L2_MEMORY_MMAP: 1217 case V4L2_MEMORY_MMAP: