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_turnstile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/kern/subr_turnstile.c') diff --git a/sys/kern/subr_turnstile.c b/sys/kern/subr_turnstile.c index 245240b..269faca 100644 --- a/sys/kern/subr_turnstile.c +++ b/sys/kern/subr_turnstile.c @@ -259,7 +259,7 @@ propagate_priority(struct thread *td) */ KASSERT(TD_ON_LOCK(td), ( "thread %d(%s):%d holds %s but isn't blocked on a lock\n", - td->td_tid, td->td_proc->p_comm, td->td_state, + td->td_tid, td->td_name, td->td_state, ts->ts_lockobj->lo_name)); /* @@ -1024,7 +1024,7 @@ print_thread(struct thread *td, const char *prefix) db_printf("%s%p (tid %d, pid %d, \"%s\")\n", prefix, td, td->td_tid, td->td_proc->p_pid, td->td_name[0] != '\0' ? td->td_name : - td->td_proc->p_comm); + td->td_name); } static void @@ -1107,7 +1107,7 @@ print_lockchain(struct thread *td, const char *prefix) while (!db_pager_quit) { db_printf("%sthread %d (pid %d, %s) ", prefix, td->td_tid, td->td_proc->p_pid, td->td_name[0] != '\0' ? td->td_name : - td->td_proc->p_comm); + td->td_name); switch (td->td_state) { case TDS_INACTIVE: db_printf("is inactive\n"); @@ -1190,7 +1190,7 @@ print_sleepchain(struct thread *td, const char *prefix) while (!db_pager_quit) { db_printf("%sthread %d (pid %d, %s) ", prefix, td->td_tid, td->td_proc->p_pid, td->td_name[0] != '\0' ? td->td_name : - td->td_proc->p_comm); + td->td_name); switch (td->td_state) { case TDS_INACTIVE: db_printf("is inactive\n"); -- cgit v1.1