Re: writing to syslog file
- From: "Alaa" <asubs@xxxxxxx>
- Date: 26 Oct 2006 03:37:01 -0700
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,why don't u use "printk"?
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?
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
.
- Follow-Ups:
- Re: writing to syslog file
- From: gil_hamilton@xxxxxxxxxxx
- Re: writing to syslog file
- References:
- writing to syslog file
- From: Alaa
- Re: writing to syslog file
- From: Milind Dumbare
- writing to syslog file
- Prev by Date: Re: writing/finding pci bar0
- Next by Date: Re: writing to syslog file
- Previous by thread: Re: writing to syslog file
- Next by thread: Re: writing to syslog file
- Index(es):
Relevant Pages
|
|