From: Kenn H. <ke...@us...> - 2003-04-17 02:18:28
|
Update of /cvsroot/linux-vax/kernel-2.5/arch/vax/kernel In directory sc8-pr-cvs1:/tmp/cvs-serv9218/arch/vax/kernel Modified Files: process.c Log Message: Print some more useful info in debugging printk()s Index: process.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/arch/vax/kernel/process.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- process.c 10 Mar 2003 22:38:54 -0000 1.14 +++ process.c 17 Apr 2003 02:18:24 -0000 1.15 @@ -51,8 +51,8 @@ unsigned long pcbb; /* physical address of new pcb */ #ifdef VAX_PROCESS_DEBUG - printk("vax_switch_to: switching %08lx -> %08lx\n", - (unsigned long)prev, (unsigned long)next); + printk("vax_switch_to: switching %p, pid %d, state %ld -> %p, pid %d, state %ld\n", + prev, prev->pid, prev->state, next, next->pid, next->state); #endif /* We should check that __pa((prev)->thread.pcb) == PR_PCBB */ @@ -115,7 +115,7 @@ child_stack = (struct new_thread_stack *)(stack_top) - 1; #ifdef VAX_PROCESS_DEBUG - printk("copy_thread: pid %d, task 0x%08lx, kstack_top 0x%8lx, usp 0x%08lx, ksp 0x%08lx\n", + printk("copy_thread: pid %d, task 0x%08lx, kstack_top %p, usp 0x%08lx, ksp %p\n", p->pid, (unsigned long)p, stack_top, usp, child_stack); #endif child_regs = &child_stack->regs; @@ -182,8 +182,8 @@ our kernel stack, so we cannot pop anything off. That means that we can never return from here. */ #ifdef VAX_PROCESS_DEBUG - printk("kernel_thread: calling thread function at %08lx\n", - (unsigned long)fn); + printk("kernel_thread: task %p, pid %d, calling thread function at %08lx\n", + current, current->pid, (unsigned long)fn); #endif kernel_thread_exit(fn(arg)); } |