OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e34c4db
)
[media] v4l2-dev: don't debug poll unless the debug level > 2
author
Hans Verkuil
<hans.verkuil@cisco.com>
Mon, 3 Mar 2014 09:47:38 +0000
(06:47 -0300)
committer
Mauro Carvalho Chehab
<m.chehab@samsung.com>
Thu, 17 Jul 2014 21:30:36 +0000
(18:30 -0300)
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>
drivers/media/v4l2-core/v4l2-dev.c
patch
|
blob
|
history
diff --git
a/drivers/media/v4l2-core/v4l2-dev.c
b/drivers/media/v4l2-core/v4l2-dev.c
index
fbe45b8
..
33617c3
100644
(file)
--- 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;