summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/subr_sleepqueue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_sleepqueue.c b/sys/kern/subr_sleepqueue.c
index 1dbd1db..6ef7741 100644
--- a/sys/kern/subr_sleepqueue.c
+++ b/sys/kern/subr_sleepqueue.c
@@ -1131,8 +1131,8 @@ found:
td_slpq) {
db_printf("\t%p (tid %d, pid %d, \"%s\")\n", td,
td->td_tid, td->td_proc->p_pid,
- td->td_name[i] != '\0' ? td->td_name :
- td->td_name);
+ td->td_name[0] != '\0' ? td->td_name :
+ td->td_proc->p_comm);
}
}
}
OpenPOWER on IntegriCloud