Hello,<br>Use the new macros such as pr_info(), pr_debug() and so on. <br><br><div class="gmail_quote">On Sun Nov 23 2014 at 2:04:27 PM Philipp Muhoray &lt;<a href="mailto:philipp.muhoray@gmail.com">philipp.muhoray@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Am 2014-11-23 um 06:58 schrieb Mayank:<br>
&gt; Hi,<br>
&gt;       I am trying to print something to the kernel debug log level using<br>
&gt; printk, but while using dmesg i am not getting the output on the<br>
&gt; console. My /proc/sys/kernel/printk setting is 4 4 1 7.<br>
&gt; Please help<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Mayank<br>
&gt;<br>
&gt;<br>
&gt; ______________________________<u></u>_________________<br>
&gt; Kernelnewbies mailing list<br>
&gt; <a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.<u></u>org</a><br>
&gt; <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.<u></u>org/mailman/listinfo/<u></u>kernelnewbies</a><br>
<br>
Hello,<br>
<br>
Does your string end with the newline character &#39;\n&#39;? Otherwise your<br>
output will not be flushed immediately (it remains in the buffer). So try<br>
<br>
     printk(KERN_DEBUG &quot;Hello World!\n&quot;);<br>
<br>
Maybe that helps.<br>
<br>
br,<br>
phil<br>
<br>
______________________________<u></u>_________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.<u></u>org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.<u></u>org/mailman/listinfo/<u></u>kernelnewbies</a><br>
</blockquote></div>