diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2021-03-11 14:05:38 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-03-22 11:54:31 +0100 |
commit | bea7515df5a21a749d86cbf84f6d3a0ddb9f3a1c (patch) | |
tree | f5f3cd0275a5d9cb19dba72ae6c5f5c022e67ce5 | |
parent | c10a3718d9555fafe9325d63b11ff76daed69c03 (diff) | |
download | linux-stable-bea7515df5a21a749d86cbf84f6d3a0ddb9f3a1c.tar.gz linux-stable-bea7515df5a21a749d86cbf84f6d3a0ddb9f3a1c.tar.bz2 linux-stable-bea7515df5a21a749d86cbf84f6d3a0ddb9f3a1c.zip |
media: v4l2-dev.c: show which events are requested by poll()
This helps debugging poll problems.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-rw-r--r-- | drivers/media/v4l2-core/v4l2-dev.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/v4l2-core/v4l2-dev.c b/drivers/media/v4l2-core/v4l2-dev.c index b6a72d297775..7d0edf3530be 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; } |