Re: writing to syslog file



I'm trying to use "printk".........
wish me luck, and thanks for the advice.

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: display problems - please help 2
    ... > Stuart - or anybody who has any advice. ... It won't work because it is a kernel module and the new kernel will not ... I seem to remember that you can force the install, ...
    (RedHat)
  • Re: When Kill dosent work
    ... > for a system call to return, and you can't kill a process that's in the ... > bugs in the kernel, from most frequent to least frequent. ... > provide some specific advice to you. ... triggered it was creating a shell, either a regular tcsh shell or an ssh ...
    (comp.os.linux.misc)
  • Re: Diagnosing occassional random reboots
    ... Three reboots in 2.6.17 this morning so I changed the running kernel to 2.4.27 and it's been up for 10 hours now. ... I still think it's hardware. ... want someone who has profesionally repaired PCs to give you advice ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: automagic rpm changes in grub.conf
    ... Mikkel L. Ellertson schrieb: ... I subscribed to this mailinglist yesterday (found nothing in the latest ... giving the same advice 20 times. ... But if really the kernel-xen line is the origin, I will blame the kernel-packager for not removing it, when the last xen kernel has been;). ...
    (Fedora)
  • Re: automagic rpm changes in grub.conf
    ... I subscribed to this mailinglist yesterday (found nothing in the latest ... I have to wait for a new kernel to test;). ... giving the same advice 20 times. ... have to learn who is worth listening to. ...
    (Fedora)