how to use printk()

Colin Charles lists at bytebot.net
Wed Nov 24 13:13:04 UTC 2004


On Tue, 2004-11-23 at 00:25 +0530, abhijit kumar wrote:

> please tell me where should i look for output from printk(). I was
> thinking that i should get into the console when i will use "make
> bzImage" to compile modified sched.c . I have also looked in
> /etc/sysconfig/syslog but i did n't get any information there.

It will be in /var/log/messages

And only when the scheduler actually reaches your printk will there be
any useful printk output in /var/log/messages

Also, unpack the kernel tarball, look under
Documentation/sysctl/kernel.txt for more information about printk (and
its usage)
-- 
Colin Charles, byte at aeon.com.my
http://www.bytebot.net/
"First they ignore you, then they laugh at you, then they fight you, 
then you win." -- Mohandas Gandhi




More information about the users mailing list