LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
LinkBack Search this Thread
Old 11-20-2004, 04:15 PM   #1
TracyHarmer
LQ Newbie
 
Registered: Nov 2004
Posts: 2

Rep: Reputation: 0
printk messages in Fedora 2


I am new to using linux and I am currently running Fedora 2. I was running an earlier version of Linux (pre 2.5.40) and I did some simple device driver development. Prior to the Fedora version of Linux, I have been using printk to add messages to the /var/log/messages file during the device drivers initialization, while it ran, and when it was unloaded.

With Fedora 2, after fixing some compile time issues I have a module that loads using insmod, however, the printk messages are not showing up either in the messages file or on the console screen.

My question then is, do the messages from printk get put somewhere else in Fedora 2 or is there something that I have to do to allow the printk messages to be put into the messages file. If there is something that I have to do to turn this "on" could someone please provide me with the specific things that I need to do to make that happen.

Thanks in advance for your help.
 
Old 11-20-2004, 05:31 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,527

Rep: Reputation: 147Reputation: 147
Probably a configuration issue related to syslog (check /etc/syslog.conf). Is there the same problem with other modules?
 
Old 11-22-2004, 08:23 AM   #3
TracyHarmer
LQ Newbie
 
Registered: Nov 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your suggestion,

My /etc/syslog.conf file contained the following for the messages file

#Log anything (except mail) of level info or higher
#Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none /var/log/messages

I changed the authpriv.none to authpriv.* and cron.none to cron.*

This worked and now I am getting my drivers printk messages.

Where can I find the information on the options that can be used in this file so that I better understand what can be controlled using different options.

Thanks again in advance.
 
Old 11-28-2004, 04:42 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,527

Rep: Reputation: 147Reputation: 147
There's manual page for syslog.conf (man syslog.conf). The examles are quite good.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using printk arunachalam Linux - Software 1 10-10-2005 03:07 PM
linux kernel: printk: 39476 messages suppressed. seanfitz Mandriva 4 04-19-2005 04:36 PM
Regarding printk eshwar_ind Programming 0 11-23-2004 06:17 AM
output of printk can NOT be found in /var/log/messages linshu Linux - Software 1 02-13-2004 09:06 AM
printk or /proc unosoft Linux - Software 0 10-22-2003 04:05 PM


All times are GMT -5. The time now is 01:55 PM.

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