Hi all,<br>Hi all,<div><br></div><div>I am little stuck understanding this piece of code below and the way its been working <br><br>Question: since KERN_INFO = 6 # which is msg_log_level<br>and as per code<div><meta http-equiv="content-type" content="text/html; charset=utf-8"><b>msg_log_level < console_loglevel</b></div>
<div><br></div><div> this line of printk is not supposed to show up in the dmesg log ? but it is showing up . Why <br><br>cat /proc/sys/kernel/printk<br>4 4 1 7<br><br>console_loglevel = 4<br><br> printk(KERN_INFO "Brought up %ld CPUs\n", (long)num_online_cpus());<br>
<br><br>static void _call_console_drivers(unsigned start,<br> unsigned end, int msg_log_level)<br>{<br> if ((<b>msg_log_level < console_loglevel</b> || ignore_loglevel) &&<br> console_drivers && start != end) {<br>
if ((start & LOG_BUF_MASK) > (end & LOG_BUF_MASK)) {<br> /* wrapped write */<br> __call_console_drivers(start & LOG_BUF_MASK,<br> log_buf_len);<br> __call_console_drivers(0, end & LOG_BUF_MASK);<br>
} else {<br> __call_console_drivers(start, end);<br> }<br> }<br>}<br><br></div><div>Thanks for any inputs !<br>-- <br>Regards,<br>~Sid~<br><br></div></div>