how to use printk()

abhijit kumar kumarabhijit at gmail.com
Mon Nov 22 18:55:22 UTC 2004


Dear All!
   I am using printk() for debugging purpose. I am using printk() in
sched.c but i did n't see any information. I have n't use printk() 
before. I am using printk() in following manner:--

#include <linux/kernel.h>

printk(KERN_ALERT "Hello world\n");


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.

waiting for your reply!

Abhijit




More information about the users mailing list