summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2007-11-14 06:21:24 +0000
committerjulian <julian@FreeBSD.org>2007-11-14 06:21:24 +0000
commitb2732e0c22b45ce7f1225a9c12834ec8c6bf9dda (patch)
tree55718e91180bcb3bddcd007fc62792945ab8ae97 /sys/ia64
parentb248158d8d9ce6732f5835ff5c90efc7eae9d38a (diff)
downloadFreeBSD-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/ia64')
-rw-r--r--sys/ia64/ia64/trap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ia64/ia64/trap.c b/sys/ia64/ia64/trap.c
index 373a46a..a970353 100644
--- a/sys/ia64/ia64/trap.c
+++ b/sys/ia64/ia64/trap.c
@@ -279,7 +279,7 @@ printtrap(int vector, struct trapframe *tf, int isfatal, int user)
printf(" curthread = %p\n", curthread);
if (curthread != NULL)
printf(" pid = %d, comm = %s\n",
- curthread->td_proc->p_pid, curthread->td_proc->p_comm);
+ curthread->td_proc->p_pid, curthread->td_name);
printf("\n");
}
@@ -1022,7 +1022,7 @@ syscall(struct trapframe *tf)
ktrsyscall(code, callp->sy_narg, args);
#endif
CTR4(KTR_SYSC, "syscall enter thread %p pid %d proc %s code %d", td,
- td->td_proc->p_pid, td->td_proc->p_comm, code);
+ td->td_proc->p_pid, td->td_name, code);
td->td_retval[0] = 0;
td->td_retval[1] = 0;
@@ -1077,7 +1077,7 @@ syscall(struct trapframe *tf)
userret(td, tf);
CTR4(KTR_SYSC, "syscall exit thread %p pid %d proc %s code %d", td,
- td->td_proc->p_pid, td->td_proc->p_comm, code);
+ td->td_proc->p_pid, td->td_name, code);
#ifdef KTRACE
if (KTRPOINT(td, KTR_SYSRET))
ktrsysret(code, error, td->td_retval[0]);
OpenPOWER on IntegriCloud