Re: writing to syslog file



I used :
"printk(KERN_INFO "message"\n);
within tcp_input.c file, and did recompile using "make bzImage". The
system recompiled without any errors. But I can not see any message
(those I inserted in the file).

Any advise please,
Thanks a lot,

Alaa


Milind Dumbare a écrit :

Alaa wrote:
Hi all,

I'm using Linux Kernel 2.6.17.6 and I need to write some specific
messages into syslog file. I'm using the syslog command:
syslog(LOG_INFO, "message");

After recompiling the kernel, I can not get any message in the syslog
file. Am I missing anything ? also, do I need to define the LOG_INFO
within the code and how?
why don't u use "printk"?
Have you seen the level of kernel log messages in in /etc/sylog.conf
file.
google to know more about that file.

Actually, I need to repeat this message several times within the same
kernel file (tcp_input.c).
Please advice, I really need help as soon as possible.

Thanks for your help,
Alaa

.



Relevant Pages

  • Re: Error compiling kernel
    ... > I tried to recompile the kernel to include supports ... > for Toshiba laptop. ... Try using bzImage or modules. ...
    (Fedora)
  • Re: kernel source for fedora
    ... Thufir Hawat wrote: ... you're on the level, things are very strange. ... your kernel and networking and yet you don't know what an ISO image is? ... Why do you think you have to recompile, ...
    (comp.os.linux.setup)
  • Re: relativity is like Linux
    ... >>>then you need to reconfig, recompile, etc ... I haven't compiled a kernel ... >you may use my code and programs you fool, ... >are you calling it a distro, i build my distro, you are fool, thank ...
    (sci.physics.relativity)
  • Re: difficulty recompiling RHEL 4.2 kernel
    ... You recompile your kernel only if you have narrowed down the error to ... Sheesh, Unruh! ... it's got decent community support. ...
    (comp.os.linux.setup)
  • Re: The ext3 way of journalling
    ... may damage your filesystem; Only an FSCK can see how much of damage is ... Another typical FOSS answer. ... Compiling the Linux kernel is too painful. ... And recompile and recompile and recompile ad infinitum, ...
    (Linux-Kernel)