[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Where do `pr_warning()`s end up?



On Fri, Feb 08, 2013 at 08:10:31PM +0100, Alois Mahdal wrote:
> Hello && GTOTD,
> 
> I'm trying to make sense of some kernel driver code and I noticed some
> `pr_warning()` calls.
> 
> From kernel.h I know pr_warning is an `eprintf()` macro:
> 
>     #define pr_warning(fmt, ...) \
>             eprintf(0, pr_fmt(fmt), ##__VA_ARGS__)
> 
> while eprintf is defined in debug.c.
> 
> 
> So.... Does this appear somewhere during normal (Debian Wheezy)
> operation? Or is it purely a debugging thing and I would need a
> specifically compiled kernel?
> 
> Can I somehow make the driver print them for me without need to
> recompile kernel?

Start looking here:

root@tal:~# less /etc/sysctl.conf
[...]

# Uncomment the following to stop low-level messages on console
#kernel.printk = 3 4 1 3
[...]

Dang, if I can remember where the info is about the kernel "noise"
levels.

-- 
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing." --- Malcolm X


Reply to: