From: Jan-Benedict G. <jb...@us...> - 2005-10-22 18:23:02
|
Update of /cvsroot/linux-vax/kernel-2.5/arch/vax/kernel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14931 Modified Files: syscall.c Log Message: - When we found out that the number of args doesn't match what we expected, also print out the name of the process as well as it's PID. Index: syscall.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/arch/vax/kernel/syscall.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- syscall.c 3 Oct 2005 12:30:59 -0000 1.17 +++ syscall.c 22 Oct 2005 18:22:54 -0000 1.18 @@ -323,8 +323,11 @@ * Check number of syscall arguments */ if (unlikely (syscall_num_args[sc_number] != nr_args)) { - printk (KERN_DEBUG "Stack mismatch (should=%d, caller=%d) on syscall %d\n", + printk (KERN_DEBUG "%s(%d): stack mismatch (should=%d, caller=%d) on syscall %d\n", + current->comm, current->pid, syscall_num_args[sc_number], nr_args, sc_number); + printk (KERN_DEBUG "Please report to " + "<lin...@pe...>.\n"); #ifdef CONFIG_DEBUG_VAX_CHECK_CHMx_ARGS_ABORT regs->r0 = -EFAULT; return; |