[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: printk -- unable to print messages
Hello,
Gowri Satish Adimulam <gowri@xxxxxxxxxxx> [2006-03-08]:
> now i have new Problem,
> " in one of the simple example programm , i have assigned KERN_ALERT or
> <1> in printk , but when i run using ./insmod ,
> message in the double quotes of printk is not displayed on terminal
> window.
> I have checked in file /proc/modules , my module name was present"
1. Never use <1> directly, there are constants in the kernel headers.
2. See http://www.xml.com/ldd/chapter/book/ch04.html#t1 how to use these
constants and how to configure your system so that you can read the
output in a log file.
3. Use dmesg to watch the kernel buffer quickly without needing to
reconfigure something.
Regards,
Bernhard
--
"Feature freeze means, that everyone has a bad feeling when he changes
something, almost nothing more :)"
-- Stephan Kulow
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/