Results 1 to 3 of 3
My printk statement looks like:
printk(KERN_DEBUG "Hello world\n");
My syslogd and klogd are both running, but I can't find the "Hello world" in the /var/log/messages file.
Where is wrong? Why ...
- 09-18-2005 #1Just Joined!
- Join Date
- Nov 2004
- Posts
- 43
/var/log/messages
My printk statement looks like:
printk(KERN_DEBUG "Hello world\n");
My syslogd and klogd are both running, but I can't find the "Hello world" in the /var/log/messages file.
Where is wrong? Why does not my printk statement go to /var/log/messages?
Thank you very much!
- 07-23-2008 #2Just Joined!
- Join Date
- Dec 2007
- Posts
- 29
try this;
RaedCode:$sudo less /var/log/kern.log
- 07-23-2008 #3
else try this
Open new terminal and use the commandCode:printk(KERN_ALERT "Hello, world \n");
In another terminal ,Code:tail -f /var/log/messages
Compile and insert your module using insmod command
and check the messages file.
EDIT :
Oops : Sorry looks like very very old post ..lol
Last edited by Lakshmipathi; 07-23-2008 at 09:55 AM. Reason: Oops : Sorry looks like very very old post ..lol :)
- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------


Reply With Quote
