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: v5.13-rc1~124^2~294 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bea7515df5a21a749d86cbf84f6d3a0ddb9f3a1c;p=thirdparty%2Fkernel%2Flinux.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 b6a72d2977756..7d0edf3530be3 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; }