How to use pr_debug

John de la Garza john at jjdev.com
Wed Feb 26 14:47:41 EST 2014


On Wed, Feb 26, 2014 at 11:35:23AM -0800, m silverstri wrote:
> I am using 'pr_debug()' to print debug statements. But I don't see
> anything in my serial console. But when I use pr_info(), I see the
> debug statements.
> Do I need to do anything to see pr_debug()?

add this to the top of the file (before the includes)

#define DEBUG


on my system the output goes to /var/log/debug




More information about the Kernelnewbies mailing list