Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-07-2010, 07:44 AM   #1
David Li
Registered: Mar 2010
Posts: 42

Rep: Reputation: 15
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?
Old 04-07-2010, 09:21 PM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

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

dmesg -n 9
... or ...

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

Last edited by paulsm4; 04-07-2010 at 09:31 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to enable printk message on EP9307 (kernel tamamontu Linux - Embedded & Single-board computer 1 02-05-2010 01:36 AM
Message in dmesg cghcgh Linux - Enterprise 1 04-16-2008 04:18 PM
kernel message from dmesg rgkx Linux - Hardware 5 02-16-2007 04:45 PM
printk: message ernobe Debian 4 11-20-2004 11:50 AM
redirecting kernel's printk of an error message mwalker_web Linux - Newbie 0 11-14-2003 04:54 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration