<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> kernelnewbies-bounces@kernelnewbies.org [mailto:kernelnewbies-bounces@kernelnewbies.org] <b>On Behalf Of </b>Vaibhav Jain<br><b>Sent:</b> Wednesday, August 31, 2011 1:08 PM<br><b>To:</b> Jonathan Neuschäfer<br><b>Cc:</b> kernelnewbies@kernelnewbies.org<br><b>Subject:</b> Re: how to configure printk() in 2.6 kernel<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal>On Tue, Aug 30, 2011 at 12:25 PM, Jonathan Neuschäfer <<a href="mailto:j.neuschaefer@gmx.net">j.neuschaefer@gmx.net</a>> wrote:<o:p></o:p></p><div><p class=MsoNormal>On Mon, Aug 29, 2011 at 04:38:03PM -0700, Vaibhav Jain wrote:<br>> On Mon, Aug 29, 2011 at 3:24 PM, Ramesh.P <<a href="mailto:rameshpa@gmail.com">rameshpa@gmail.com</a>> wrote:<br>><br>> > Hi Vaibhav,<br>> ><br>> > Try /etc/rsyslog.conf. However you should be using<br>> > /proc/sys/kernel/printk to really configure printk.<br>> ><o:p></o:p></p></div><p class=MsoNormal>[snip]<o:p></o:p></p><div><p class=MsoNormal style='margin-bottom:12.0pt'>><br>> Hi Ramesh,<br>><br>> As I mentioned /etc/syslog.conf is not there on my system. Could you please<br>> tell me if the name has changed for the file in 2.6 kernel ? Also, does<br>> /proc/sys/kernel/printk provides for the same level of control ?<o:p></o:p></p></div><p class=MsoNormal>Syslog is a user space program, that collects the kernel messages.<br>So if you don't have /etc/syslog.conf on your system, it likely just<br>means that you don't have a standard installation of the syslog program,<br>which can have different reasons. AFAIK, syslog has been replaced by<br>rsyslog or syslog-ng on modern desktop linux distros.<br><br>BTW, Ramesh told you to try /etc/rsyslog.conf (note the 'r'), not<br>/etc/syslog.conf.<br><br>HTH,<br><span style='color:#888888'> Jonathan Neuschäfer</span><o:p></o:p></p></div><div><p class=MsoNormal><br> <o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><div><p class=MsoNormal>Hi,<o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal>Thanks for reply! I found the rsyslog.conf on my system. But <o:p></o:p></p></div><div><p class=MsoNormal>I am finding it hard to configure it. Actually I made some changes but they are not working.<o:p></o:p></p></div><div><p class=MsoNormal>I made some changes to the kernel and wanted that they appear at either the console or <o:p></o:p></p></div><div><p class=MsoNormal>some other file. However the changes don't work.<o:p></o:p></p></div><div><p class=MsoNormal>I tried adding the following lines (one at a time) <o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal>kern.* /dev/console<o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal>kern.* <file in my home directory><o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal>but on making these changes other kernel messages also stop showing up.<o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal>Can you please give me some idea as to why this might happen ?<o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal>-Thanks<o:p></o:p></p></div><div><p class=MsoNormal>Vaibhav Jain<o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>See if this helps:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>echo 7 > /proc/sys/kernel/printk<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Jeff Haran<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p></div></div></div></div><font face="monospace"></font></body></html>