printk or pr_<level>?

Greg KH greg at kroah.com
Wed Jul 23 14:56:57 EDT 2014


On Wed, Jul 23, 2014 at 08:40:04PM +0200, Kristofer Hallin wrote:
> Yes.
> 
> https://www.kernel.org/doc/local/pr_debug.txt

No, that isn't true if CONFIG_DYNAMIC_DEBUG is enabled, which you really
should enable all the time.  If that option is enabled, then you can
enable the debugging messages after the code is loaded, or from the
module load command line, through that interface, which is much more
useful than just "enable/disable at build time".

Hope this helps,

greg k-h



More information about the Kernelnewbies mailing list