kernel loglevel

Joel Fernandes agnel.joel at gmail.com
Mon Oct 17 19:48:46 EDT 2016


Hi Wenda,

pr_debug needs you to define the DEBUG macro to activate it.

Check:
http://stackoverflow.com/questions/28936199/pr-debug-not-giving-any-output

and the kernel docs,
https://www.kernel.org/doc/local/pr_debug.txt

Joel

On Mon, Oct 17, 2016 at 4:17 PM, Wenda Ni <wonda.ni at gmail.com> wrote:
> Dear all,
>
> I am working on a kernel module that incorporate both pr_debug and
> pr_warn. I would like to see pr_debug messages from dmesg.
>
> What I followed is to specify kernel parameter by saying "loglevel=7".
> This can be seen confirmed  from /proc/cmdline. But still, I donot get
> pr_debug level messages either from dmesg or from /var/log/messages. I
> also tried echo 7 > /proc/sys/kernel/printk. It does not return what I
> expect, either.
>
> Let me know what I am missing. Thank you very much in advance.
>
> Cheers,
>
> Wenda Ni, Ph.D.
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



More information about the Kernelnewbies mailing list