diff options
author | julian <julian@FreeBSD.org> | 2007-11-14 06:21:24 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2007-11-14 06:21:24 +0000 |
commit | b2732e0c22b45ce7f1225a9c12834ec8c6bf9dda (patch) | |
tree | 55718e91180bcb3bddcd007fc62792945ab8ae97 /sys/kern/subr_turnstile.c | |
parent | b248158d8d9ce6732f5835ff5c90efc7eae9d38a (diff) | |
download | FreeBSD-src-b2732e0c22b45ce7f1225a9c12834ec8c6bf9dda.zip FreeBSD-src-b2732e0c22b45ce7f1225a9c12834ec8c6bf9dda.tar.gz |
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.
Diffstat (limited to 'sys/kern/subr_turnstile.c')
-rw-r--r-- | sys/kern/subr_turnstile.c | 8 |
1 files changed, 4 insertions, 4 deletions
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"); |