summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
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/powerpc
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/powerpc')
-rw-r--r--sys/powerpc/aim/trap.c2
-rw-r--r--sys/powerpc/powerpc/trap.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/powerpc/aim/trap.c b/sys/powerpc/aim/trap.c
index a5ab7eb..2418044d 100644
--- a/sys/powerpc/aim/trap.c
+++ b/sys/powerpc/aim/trap.c
@@ -303,7 +303,7 @@ printtrap(u_int vector, struct trapframe *frame, 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");
}
diff --git a/sys/powerpc/powerpc/trap.c b/sys/powerpc/powerpc/trap.c
index a5ab7eb..2418044d 100644
--- a/sys/powerpc/powerpc/trap.c
+++ b/sys/powerpc/powerpc/trap.c
@@ -303,7 +303,7 @@ printtrap(u_int vector, struct trapframe *frame, 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");
}
OpenPOWER on IntegriCloud