summaryrefslogtreecommitdiff
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2002-10-02 20:31:47 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2002-10-02 20:31:47 +0000
commit551cf4e1503e868324f01a6c98262a8e4c7b8cdb (patch)
tree4e540e60eb5d2ee3fc581a4014df11fe04763455 /sys/kern/tty.c
parent42117b6c4d8866c78525f26816000706128759e2 (diff)
Notes
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 c075a4738ff5..717b12321e8e 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. */