kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* loglevel 7 (debug) and pr_debug()
@ 2014-04-16  8:43 Martin Kepplinger
  2014-04-16  9:00 ` Arun KS
  0 siblings, 1 reply; 10+ messages in thread
From: Martin Kepplinger @ 2014-04-16  8:43 UTC (permalink / raw)
  To: kernelnewbies

I'm on Debian here and I don't really get pr_debug and printk(KERN_DEBUG
...). Let's stick to pr_debug.

I have DYNAMIC_DEBUG enabled and
root at laptop:/proc/sys/kernel# cat /proc/sys/kernel/printk
7	7	1	7

I write a module with pr_debug's. I load the module and I *don't* see
anything in /var/log/messages (or anywhere in /var/log/* ). Adding
#define DEBUG doesn't help.

/sys/kernel/debug/dynamic_debug/control has the pr_debug entries I use
in my loaded module.

In short: How do I see debug log messages? Using pr_info() works as
expected. What am I missing? Do I need to edit my Makefile?

thanks!
                     martin

-- 
Martin Kepplinger
e-mail        martink AT posteo DOT at
chat (XMPP)   martink AT jabber DOT at

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-04-16 12:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-16  8:43 loglevel 7 (debug) and pr_debug() Martin Kepplinger
2014-04-16  9:00 ` Arun KS
2014-04-16  9:16   ` Martin Kepplinger
2014-04-16  9:58     ` Arun KS
2014-04-16 11:11       ` Martin Kepplinger
2014-04-16 11:43         ` Denis Pithon
2014-04-16 11:57           ` Martin Kepplinger
2014-04-16 12:29             ` Arun KS
2014-04-16 12:30             ` Valdis.Kletnieks at vt.edu
2014-04-16 12:37             ` Denis Pithon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).