aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/v4l2-core
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2014-03-03 06:47:38 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-07-17 18:30:36 -0300
commit57fc8eb19adc794e0d267b241561c8211a50d2a8 (patch)
tree0f8e39c3cd5faaa45ace0de70b7f9a590c7c2839 /drivers/media/v4l2-core
parent[media] videodev2.h: add V4L2_FIELD_HAS_T_OR_B macro (diff)
downloadlinux-dev-57fc8eb19adc794e0d267b241561c8211a50d2a8.tar.xz
linux-dev-57fc8eb19adc794e0d267b241561c8211a50d2a8.zip
[media] v4l2-dev: don't debug poll unless the debug level > 2
Some applications poll a lot, so prevent the poll message from flooding the log. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/v4l2-core')
-rw-r--r--drivers/media/v4l2-core/v4l2-dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/v4l2-core/v4l2-dev.c b/drivers/media/v4l2-core/v4l2-dev.c
index fbe45b83a166..33617c365acc 100644
--- a/drivers/media/v4l2-core/v4l2-dev.c
+++ b/drivers/media/v4l2-core/v4l2-dev.c
@@ -335,7 +335,7 @@ static unsigned int v4l2_poll(struct file *filp, struct poll_table_struct *poll)
return DEFAULT_POLLMASK;
if (video_is_registered(vdev))
res = vdev->fops->poll(filp, poll);
- if (vdev->debug)
+ if (vdev->debug > 2)
printk(KERN_DEBUG "%s: poll: %08x\n",
video_device_node_name(vdev), res);
return res;