Re: beginner's question about KERN_ALERT (it does not work)

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

 



$ echo 6 > /proc/sys/kernel/printk
make sure your not insmoding the modules in GUI .
do these only on the tty's .
 
-----------------------------------------------------
Surya Prabhakar Naredla
Systems Engineer
United Kingdom.
------------------------------------------------------
 
your syslogd settings may be wrong.

klogd (a part of syslogd) is started with options that indicate which debug level to use and will only allow console messages at or more important than that level.


For redhat, the configuration file is /etc/sysconfig/syslog (or something to that effect).

Man klogd for more info.

At 10:22 AM 1/1/2005, #NGUYEN HOANG CHUNG# wrote:
Hi all,

I am following The Linux Kernel Module Programming Guide with the 1st example :
___________________________
int init_module(void)
{
printk("<1>Hello world 1.\n");


      return 0;
}


void cleanup_module(void) { printk(KERN_ALERT "Goodbye world 1.\n"); }

________________________

I can load the file .o but all out the console are warnings (the messages like ? Hello world ? are just printed in /var/log/messages).
The same thing happens when I do
Ø echo 8 > /proc/sys/kernel/printk
The content of printk is as follows:
8 4 1 7


How can I print the messages to the console (I am using the RH 9 with kernel 2.4.20)
Please help me
Thanks a lot

 

[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