Enable/Disable pr_debug in Linux Device Driver

By default, the pr_debug messages are disabled. Consider the below sample code:


Output:


You can see, pr_debug log was not displayed on the dmesg output.


To enable debugging output, build the appropriate file with -DDEBUG by adding
CFLAGS_[filename].o := -DDEBUG to the Makefile


Comments

Popular posts from this blog

bb.utils.contains yocto

Difference between RDEPENDS and DEPENDS in Yocto

PR, PN and PV Variable in Yocto