summaryrefslogtreecommitdiffstats
path: root/sys/kern/p1003_1b.c
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/kern/p1003_1b.c
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/kern/p1003_1b.c')
-rw-r--r--sys/kern/p1003_1b.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/p1003_1b.c b/sys/kern/p1003_1b.c
index e998385..5fae20d 100644
--- a/sys/kern/p1003_1b.c
+++ b/sys/kern/p1003_1b.c
@@ -63,7 +63,7 @@ int
syscall_not_present(struct thread *td, const char *s, struct nosys_args *uap)
{
log(LOG_ERR, "cmd %s pid %d tried to use non-present %s\n",
- td->td_proc->p_comm, td->td_proc->p_pid, s);
+ td->td_name, td->td_proc->p_pid, s);
/* a " return nosys(p, uap); " here causes a core dump.
*/
OpenPOWER on IntegriCloud