about pr_debug
Bjørn Mork
bjorn at mork.no
Wed Jun 25 04:20:32 EDT 2014
Varka Bhadram <varkabhadram at gmail.com> writes:
> refer this :https://www.kernel.org/doc/local/pr_debug.txt
That seems a little outdated since it doesn't mention the extremely
useful dynamic debug feature. So please read
https://www.kernel.org/doc/Documentation/dynamic-debug-howto.txt
as well.
The ability to dynamically switch on and off debug messages per callsite
is extremely useful. And it also enables you to switch on some extra
info you often want, like function names, without having to explictly
put them into every format string.
I recommend setting CONFIG_DYNAMIC_DEBUG and taking a look at
/sys/kernel/debug/dynamic_debug/control if you ever do any kernel
development.
Bjørn
More information about the Kernelnewbies
mailing list