diff options
author | Tushar Behera <tushar.behera@linaro.org> | 2012-11-12 02:01:29 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-25 08:15:53 -0400 |
commit | 9b6f5dc07ae008c58ea27e91a7b1dfbbd0f6972a (patch) | |
tree | c93fc2bc29937717d5b39c623ac7df88a5494742 /drivers/media/v4l2-core | |
parent | 7bce33daeaca26a3ea3f6099fdfe4e11ea46cac6 (diff) |
[media] videobuf2-core: print current state of buffer in vb2_buffer_done
In vb2_buffer_done, it would be better the print the value of 'state'
(current state of buffer) than to print 'vb->state' which is always
VB2_BUF_STATE_ACTIVE.
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/v4l2-core')
-rw-r--r-- | drivers/media/v4l2-core/videobuf2-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core.c index 70827feb87b4..02bb5e721657 100644 --- a/drivers/media/v4l2-core/videobuf2-core.c +++ b/drivers/media/v4l2-core/videobuf2-core.c | |||
@@ -855,7 +855,7 @@ void vb2_buffer_done(struct vb2_buffer *vb, enum vb2_buffer_state state) | |||
855 | return; | 855 | return; |
856 | 856 | ||
857 | dprintk(4, "Done processing on buffer %d, state: %d\n", | 857 | dprintk(4, "Done processing on buffer %d, state: %d\n", |
858 | vb->v4l2_buf.index, vb->state); | 858 | vb->v4l2_buf.index, state); |
859 | 859 | ||
860 | /* sync buffers */ | 860 | /* sync buffers */ |
861 | for (plane = 0; plane < vb->num_planes; ++plane) | 861 | for (plane = 0; plane < vb->num_planes; ++plane) |