mbox series

[0/4] Add debug messages to v4l2-ctrls

Message ID 20190218201528.21545-1-ezequiel@collabora.com (mailing list archive)
Headers show
Series Add debug messages to v4l2-ctrls | expand

Message

Ezequiel Garcia Feb. 18, 2019, 8:15 p.m. UTC
Even though the goal was fairly simple (adding debug to v4l2-ctrls)
it ended up spanning this little patchset.

The motivation for this cleanup is being able to turn on/off
debugging messages in v4l2-ctrls.c, using a knob common to the
videodev driver's core.

So, in addition to the dev_debug attribute, this series introduces
a debug module parameter, and a new debug level, which enables
v4l2-ctrl debugging.

Having this is quite useful when bringing-up stateless codecs,
using the Request API.

Ezequiel Garcia (4):
  media: v4l: Simplify dev_debug flags
  media: v4l: Improve debug dprintk macro
  media: v4l: Add a module parameter to control global debugging
  media: v4l: ctrls: Add debug messages

 drivers/media/v4l2-core/v4l2-ctrls.c | 63 +++++++++++++++++++++++-----
 drivers/media/v4l2-core/v4l2-dev.c   | 48 ++++++++++-----------
 include/media/v4l2-ioctl.h           |  2 +
 3 files changed, 78 insertions(+), 35 deletions(-)