Re: printk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi
use KERN_EMERG in printk...

printk(KERN_EMERG "Hi there!\n");

this will cause it to print it on screen. changing the console
loglevel will cause printk to dump to screen... may not be the best
idea. KERN_EMERG by default logs to screen
-rahul


On 6/16/05, Gaurav Dhiman <gaurav4lkg@xxxxxxxxx> wrote:
> On 6/16/05, Arlen Nascimento <arlen.nascimento@xxxxxxxxx> wrote:
> > Does anybody know how do I print 'printk()' output to console without
> > changing syslog configuration?
> > e.g.: each 5 seconds print 'i'm here'
> 
> Read the 4th chapter of LDD : http://www.xml.com/ldd/chapter/book/ch04.html
> 
> Well you can get all the kernel messages printed by printk, by
> changing the console loglevel, you can do that by
> 
> # echo 8 > /proc/sys/kernel/printk
> 
> regards,
> - Gaurav
> 
> >
> >
> > --
> > Arlen Nascimento
> >
> > --
> > Kernelnewbies: Help each other learn about the Linux kernel.
> > Archive:       http://mail.nl.linux.org/kernelnewbies/
> > FAQ:           http://kernelnewbies.org/faq/
> >
> >
> 
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 
>

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux