From: Richard Langly <richard.ringo.langly@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: printk() not outputting
Date: Fri, 9 Oct 2009 13:22:06 -0500 [thread overview]
Message-ID: <a3e829d20910091122p3c56acf6h975be820e555d400@mail.gmail.com> (raw)
I've got a problem making it hard for me to debug. For some reason, my
printk()'s aren't putting anything out to my /var/log/messages file. I
am running X so, as I understand it, messages won't appear in the
terminals where I insmod the module. But they should appear in
/var/log/messages.
If I load my test module, I do get a message from /var/log/messages saying ....
Oct 3 14:50:04 Tux sudo: whisper : TTY=pts/12 ;
PWD=/home/whisper/test-mod/kernel/net/tm ; USER=root ;
COMMAND=/sbin/insmod mymod.ko
My problem appears as simple as this.
static int __init my_init(void) {
printk(KERN_CRIT "my_init ...\n");
// ...
return 0;
}
static void __exit my_exit(void) {
printk(KERN_INFO "my_exit ...\n");
}
Also, the values in my /proc/sys/kernel/printk file are:
8 4 1 7
So I changed the first value to 8, and I still don't see messages in
my /var/log/messages file, nor using dmesg.
When I load the module, it's just this ...
make
sudo depmod -a
sudo insmod ./mymod.ko
And I don't see anything in my syslog-ng.conf that would prevent this.
Any help much appreciated.
next reply other threads:[~2009-10-09 18:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-09 18:22 Richard Langly [this message]
2009-10-09 22:33 ` Jiri Slaby
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a3e829d20910091122p3c56acf6h975be820e555d400@mail.gmail.com \
--to=richard.ringo.langly@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®