LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   DMESG does not display the kernel driver function PRINTK message (https://www.linuxquestions.org/questions/linux-newbie-8/dmesg-does-not-display-the-kernel-driver-function-printk-message-800570/)

David Li 04-07-2010 07:44 AM

DMESG does not display the kernel driver function PRINTK message
 
Kernel driver function was called via ioctl and returned success, but when I checked the kernel display buffer with dmesg the printk message was not there. Then when you do lsmod, the driver you were calling showed "used by zero". So it seems like the kernel driver was not accessed. In the kernel driver, I had many printk statements, but nothing printed in the buffer.

Can anyone tell me if the driver get accessed and what could cause this?

paulsm4 04-07-2010 09:21 PM

Sure - a common issue. You probably just need to change the trace level:

http://serverfault.com/questions/247...utput-of-dmesg

http://elinux.org/Kernel_Debugging_Tips

http://www.thelinuxdaily.com/2010/01...rintk-logging/

http://www.developertutorials.com/tu...512/page1.html

Quote:

dmesg -n 9
... or ...

Quote:

echo "9 9 9 9" > /proc/sys/kernel/printk
With the logging defaults, you won't necessarily see anything.

The links I refer to above let you chnage a) the level at which stuff gets logged, b) the level of stuff you see when you read the log, and c) whether or not you see it at the terminal.

'Hope that helps .. PSM


All times are GMT -5. The time now is 04:42 AM.