All of lore.kernel.org
 help / color / mirror / Atom feed
* How to see kernel pr_err error messages.
@ 2010-02-27 10:11 reg
  2010-02-27 12:06 ` Borislav Petkov
  0 siblings, 1 reply; 2+ messages in thread
From: reg @ 2010-02-27 10:11 UTC (permalink / raw)
  To: linux-kernel

Im looking at some kernel code, and there are 'pr_err' error messages in
it that would help me discover my problem.

However I dont see them printing anywhere.

What do I have to do to see these error messages?
A search with GOOGLE  and a grep of the code wasnt too useful, but
it seems possible that I need to set

    #define CONFIG_DEBUG

Is that true?  I see a lot of <something>_DEBUGs in the .config file
but no simple CONFIG_DEBUG that is commented out.

In any case, how do I get these things to print?
-- 
                                        Reg.Clemens
                                        reg@dwf.com


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

* Re: How to see kernel pr_err error messages.
  2010-02-27 10:11 How to see kernel pr_err error messages reg
@ 2010-02-27 12:06 ` Borislav Petkov
  0 siblings, 0 replies; 2+ messages in thread
From: Borislav Petkov @ 2010-02-27 12:06 UTC (permalink / raw)
  To: reg; +Cc: linux-kernel

From: reg@dwf.com
Date: Sat, Feb 27, 2010 at 03:11:03AM -0700

> Im looking at some kernel code, and there are 'pr_err' error messages in
> it that would help me discover my problem.
> 
> However I dont see them printing anywhere.
> 
> What do I have to do to see these error messages?

Take a look at 'ignore_loglevel' and 'loglevel' kernel parameters in
<Documentation/kernel-parameters.txt> depending on what exactly you want
to achieve.

> A search with GOOGLE  and a grep of the code wasnt too useful, but
> it seems possible that I need to set
> 
>     #define CONFIG_DEBUG
> 
> Is that true?  I see a lot of <something>_DEBUGs in the .config file
> but no simple CONFIG_DEBUG that is commented out.

I think this is referring to pr_debug() calls. Those get called when you
add

#define DEBUG

to the file containing them. Otherwise they're optimized away.

-- 
Regards/Gruss,
Boris.

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

end of thread, other threads:[~2010-02-27 12:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-27 10:11 How to see kernel pr_err error messages reg
2010-02-27 12:06 ` Borislav Petkov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.