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.

How to enable dev_dbg messages



Could somebody explain to newbie like me how to enable the dev_dbg messages as defined in device.h? I understand that the DEBUG variable must be set, but enabling various options in "Kernel hacking" of menuconfig was not successful so far. If I manually define DEBUG in device.h, then I get the compile error that (dev)->driver is not defined. Enabling dev_dbg would it make much easier for me to understand what is going on, because I get a "Division by zero in kernel" error  after a "VIDIOC_STREAMON" ioctl and have not yet a clue what the cause is...

Thanks for any hint.

Stefan