Skip to content

Commit

Permalink
[media] videobuf2-core: print current state of buffer in vb2_buffer_done
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tushar Behera authored and Mauro Carvalho Chehab committed Mar 25, 2013
1 parent 7bce33d commit 9b6f5dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/v4l2-core/videobuf2-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ void vb2_buffer_done(struct vb2_buffer *vb, enum vb2_buffer_state state)
return;

dprintk(4, "Done processing on buffer %d, state: %d\n",
vb->v4l2_buf.index, vb->state);
vb->v4l2_buf.index, state);

/* sync buffers */
for (plane = 0; plane < vb->num_planes; ++plane)
Expand Down

0 comments on commit 9b6f5dc

Please sign in to comment.