[parisc-linux] [PATCH] [PARISC] Clean up syslog output of crashing userspace apps.
Helge Deller
deller at gmx.de
Sun Jul 15 07:00:58 MDT 2007
Clean up syslog output of crashing userspace apps.
With this patch the syslog will print:
portmap(1480): invalid access to 0x8232b578 at ip=0x41192af3 (segfault code 15)
which is consistent with outher output like:
hald-probe-stor(1672): unaligned access to 0xfafcbd26 at ip=0x00014013
Signed-off-by: Helge Deller <deller at gmx.de>
diff --git a/arch/parisc/mm/fault.c b/arch/parisc/mm/fault.c
index f6f6755..8d6ddf8 100644
--- a/arch/parisc/mm/fault.c
+++ b/arch/parisc/mm/fault.c
@@ -208,14 +208,9 @@ bad_area:
struct siginfo si;
#ifdef PRINT_USER_FAULTS
- printk(KERN_DEBUG "\n");
- printk(KERN_DEBUG "do_page_fault() pid=%d command='%s' type=%lu address=0x%08lx\n",
- tsk->pid, tsk->comm, code, address);
- if (vma) {
- printk(KERN_DEBUG "vm_start = 0x%08lx, vm_end = 0x%08lx\n",
- vma->vm_start, vma->vm_end);
- }
- show_regs(regs);
+ printk(KERN_DEBUG "%s(%d): invalid access to 0x%08lx at ip=0x%08lx"
+ " (segfault code %lu)\n",
+ tsk->comm, tsk->pid, address, regs->iaoq[0], code);
#endif
/* FIXME: actually we need to get the signo and code correct */
si.si_signo = SIGSEGV;
More information about the parisc-linux
mailing list