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/kern_kse.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/kern_kse.c')
-rw-r--r-- | sys/kern/kern_kse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index b044605..b80c007 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -1036,7 +1036,7 @@ thread_schedule_upcall(struct thread *td, struct kse_upcall *ku) return (NULL); } CTR3(KTR_PROC, "thread_schedule_upcall: thread %p (pid %d, %s)", - td2, td->td_proc->p_pid, td->td_proc->p_comm); + td2, td->td_proc->p_pid, td->td_name); /* * Bzero already done in thread_alloc_spare() because we can't * do the crhold here because we are in schedlock already. @@ -1339,7 +1339,7 @@ thread_userret(struct thread *td, struct trapframe *frame) * Do the last parts of the setup needed for the upcall. */ CTR3(KTR_PROC, "userret: upcall thread %p (pid %d, %s)", - td, td->td_proc->p_pid, td->td_proc->p_comm); + td, td->td_proc->p_pid, td->td_name); td->td_pflags &= ~TDP_UPCALLING; if (ku->ku_flags & KUF_DOUPCALL) { |