From b2732e0c22b45ce7f1225a9c12834ec8c6bf9dda Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 14 Nov 2007 06:21:24 +0000 Subject: generally we are interested in what thread did something as opposed to what process. Since threads by default have teh name of the process unless over-written with more useful information, just print the thread name instead. --- sys/kern/subr_pcpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/kern/subr_pcpu.c') diff --git a/sys/kern/subr_pcpu.c b/sys/kern/subr_pcpu.c index 1109b31..d0fd061 100644 --- a/sys/kern/subr_pcpu.c +++ b/sys/kern/subr_pcpu.c @@ -112,7 +112,7 @@ show_pcpu(struct pcpu *pc) td = pc->pc_curthread; if (td != NULL) db_printf("%p: pid %d \"%s\"\n", td, td->td_proc->p_pid, - td->td_proc->p_comm); + td->td_name); else db_printf("none\n"); db_printf("curpcb = %p\n", pc->pc_curpcb); @@ -120,14 +120,14 @@ show_pcpu(struct pcpu *pc) td = pc->pc_fpcurthread; if (td != NULL) db_printf("%p: pid %d \"%s\"\n", td, td->td_proc->p_pid, - td->td_proc->p_comm); + td->td_name); else db_printf("none\n"); db_printf("idlethread = "); td = pc->pc_idlethread; if (td != NULL) db_printf("%p: pid %d \"%s\"\n", td, td->td_proc->p_pid, - td->td_proc->p_comm); + td->td_name); else db_printf("none\n"); db_show_mdpcpu(pc); -- cgit v1.1