summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index c075a47..717b123 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -2399,8 +2399,8 @@ ttyinfo(struct tty *tp)
if (TD_ON_RUNQ(td) ||
(TD_IS_RUNNING(td))) {
stmp = "running";
- } else if (TD_ON_MUTEX(td)) {
- stmp = td->td_mtxname;
+ } else if (TD_ON_LOCK(td)) {
+ stmp = td->td_lockname;
} else if (td->td_wmesg) {
stmp = td->td_wmesg;
} else {
@@ -2425,7 +2425,7 @@ ttyinfo(struct tty *tp)
ttyprintf(tp, " cmd: %s %d [%s%s] ", pick->p_comm,
pick->p_pid,
- TD_ON_MUTEX(td) ? "*" : "",
+ TD_ON_LOCK(td) ? "*" : "",
stmp);
/* Print user time. */
OpenPOWER on IntegriCloud