[media] videobuf2: Add debug print for the output buffer plane lengths checks
authorSylwester Nawrocki <[email protected]>
Mon, 26 Aug 2013 14:47:53 +0000 (11:47 -0300)
committerMauro Carvalho Chehab <[email protected]>
Thu, 26 Sep 2013 10:34:41 +0000 (07:34 -0300)
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 <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
Acked-by: Laurent Pinchart <[email protected]>
Acked-by: Marek Szyprowski <[email protected]>
Signed-off-by: Sylwester Nawrocki <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/v4l2-core/videobuf2-core.c

index ba389f58eec78d74bd27b184ffef025ac25e57f9..fc8af507beac27cb0fb271754325d58017c17251 100644 (file)
@@ -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: