From: Hans Verkuil Date: Thu, 11 Mar 2021 13:05:38 +0000 (+0100) Subject: media: v4l2-dev.c: show which events are requested by poll() X-Git-Tag: accepted/tizen/unified/20230118.172025~7365^2~294 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bea7515df5a21a749d86cbf84f6d3a0ddb9f3a1c;p=platform%2Fkernel%2Flinux-rpi.git media: v4l2-dev.c: show which events are requested by poll() This helps debugging poll problems. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/v4l2-core/v4l2-dev.c b/drivers/media/v4l2-core/v4l2-dev.c index b6a72d2..7d0edf3 100644 --- a/drivers/media/v4l2-core/v4l2-dev.c +++ b/drivers/media/v4l2-core/v4l2-dev.c @@ -350,8 +350,9 @@ static __poll_t v4l2_poll(struct file *filp, struct poll_table_struct *poll) res = vdev->fops->poll(filp, poll); } if (vdev->dev_debug & V4L2_DEV_DEBUG_POLL) - dprintk("%s: poll: %08x\n", - video_device_node_name(vdev), res); + dprintk("%s: poll: %08x %08x\n", + video_device_node_name(vdev), res, + poll_requested_events(poll)); return res; }