The chip drivers use debug messages through V4L but I can't figure out how to turn them on. I've had to go around them to get debug messages from the driver, but my curiosity tells me to find the answer to this question.
JohnA
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
The chip drivers use debug messages through V4L but I can't figure out how to turn them on. I've had to go around them to get debug messages from the driver, but my curiosity tells me to find the answer to this question.
JohnA
Hi John,
looking at the v4l_dbg code
#define v4l_dbg(level, debug, client, fmt, arg...) \
do { \
if (debug >= (level)) \
v4l_client_printk(KERN_DEBUG, client, fmt , ## arg); \
} while (0)
so when you call this macro its obvious that debug's value must be greater or equal to level.
This debug value might be set as the module parameter for the driver, you just look at it.
Thx,
--Prabhakar