[parisc-linux-cvs] Re: Proposal: Make user reg dumps KERN_DEBUG

Richard Hirst rhirst@linuxcare.com
Tue, 29 May 2001 10:59:40 +0100


On Sun, May 27, 2001 at 10:52:01PM +0100, Richard Hirst wrote:
> I think it too early to switch off register dumps on user process
> faults, so I have a patch here that makes them KERN_DEBUG.  With
> that you can get them on the console (dmesg -n 8) and/or you can
> route them to a file via etc/syslog.conf.  I don't know what
> will happen by default on a new install yet.  I've tested this
> briefly with a userland fault, and with a kernel fault.  Looks
> ok.

So, on a new install, we get userland register dumps in

/var/log/debug
/var/log/kern.log
/var/log/syslog
and... on the console.

The reason they are on the console also is because our kernel/printk.c
has

#define DEFAULT_CONSOLE_LOGLEVEL 9 /* anything MORE serious than KERN_DEBUG */

while an official kernel has

#define DEFAULT_CONSOLE_LOGLEVEL 7 /* anything MORE serious than KERN_DEBUG */


I vote for changing ours to '7', unless anyone objects...

Richard.