[media] v4l2 core: improve debug flag handling
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 1 Dec 2014 13:10:44 +0000 (10:10 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Dec 2014 12:31:37 +0000 (10:31 -0200)
commit17028cdb74bf8bb593aebe5550bc90325fa9af88
tree242c98ebc182e0fd8601b01236a71b5e2de1f7d5
parent21a7e0596a63abdf12a9591c29359f7f15e18c16
[media] v4l2 core: improve debug flag handling

The old debug field is renamed to dev_debug to ensure that existing drivers
(including out-of-tree drivers) that try to use the old name will no longer
compile. A comment has also been added that makes it explicit that drivers
shouldn't use this field.

Additional bits have been added to the debug flag to be more fine-grained
when debugging, especially when dealing with streaming ioctls and read,
write and poll. You want to enable those explicitly to prevent flooding
the log when streaming unless you actually want to do that.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-dev.c
drivers/media/v4l2-core/v4l2-ioctl.c
include/media/v4l2-dev.h
include/media/v4l2-ioctl.h
This page took 0.025419 seconds and 5 git commands to generate.