<div dir="ltr"><div><div><span style="font-family:verdana,sans-serif">Hi Joel,<br><br></span></div><span style="font-family:verdana,sans-serif">It works by specifying ccflags-y += -DDEBUG in the Makefile.<br><br></span></div><span style="font-family:verdana,sans-serif">Thank you for the info!!!!</span><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font face="verdana,sans-serif"><br>Cheers,</font></div>
<div><font face="Verdana"></font> </div>
<div><font face="verdana,sans-serif">Wenda Ni, Ph.D.</font><br></div><br></div></div></div>
<br><div class="gmail_quote">On Mon, Oct 17, 2016 at 7:48 PM, Joel Fernandes <span dir="ltr"><<a href="mailto:agnel.joel@gmail.com" target="_blank">agnel.joel@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Wenda,<br>
<br>
pr_debug needs you to define the DEBUG macro to activate it.<br>
<br>
Check:<br>
<a href="http://stackoverflow.com/questions/28936199/pr-debug-not-giving-any-output" rel="noreferrer" target="_blank">http://stackoverflow.com/<wbr>questions/28936199/pr-debug-<wbr>not-giving-any-output</a><br>
<br>
and the kernel docs,<br>
<a href="https://www.kernel.org/doc/local/pr_debug.txt" rel="noreferrer" target="_blank">https://www.kernel.org/doc/<wbr>local/pr_debug.txt</a><br>
<span class="HOEnZb"><font color="#888888"><br>
Joel<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Mon, Oct 17, 2016 at 4:17 PM, Wenda Ni <<a href="mailto:wonda.ni@gmail.com">wonda.ni@gmail.com</a>> wrote:<br>
> Dear all,<br>
><br>
> I am working on a kernel module that incorporate both pr_debug and<br>
> pr_warn. I would like to see pr_debug messages from dmesg.<br>
><br>
> What I followed is to specify kernel parameter by saying "loglevel=7".<br>
> This can be seen confirmed from /proc/cmdline. But still, I donot get<br>
> pr_debug level messages either from dmesg or from /var/log/messages. I<br>
> also tried echo 7 > /proc/sys/kernel/printk. It does not return what I<br>
> expect, either.<br>
><br>
> Let me know what I am missing. Thank you very much in advance.<br>
><br>
> Cheers,<br>
><br>
> Wenda Ni, Ph.D.<br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> ______________________________<wbr>_________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.<wbr>org</a><br>
> <a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">https://lists.kernelnewbies.<wbr>org/mailman/listinfo/<wbr>kernelnewbies</a><br>
</div></div></blockquote></div><br></div>