diff options
author | jhb <jhb@FreeBSD.org> | 2002-10-02 20:33:52 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-10-02 20:33:52 +0000 |
commit | b79961de9543536d9734d8686e54a65c7f3cafab (patch) | |
tree | fd16f0ff58f4e919bd04b0c16cd0fdeb36340496 /usr.bin | |
parent | 8c9a393a0433c7cc2ee90541164cdcb927fa5bdb (diff) | |
download | FreeBSD-src-b79961de9543536d9734d8686e54a65c7f3cafab.zip FreeBSD-src-b79961de9543536d9734d8686e54a65c7f3cafab.tar.gz |
Catch up to SMTX -> SLOCK changes.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/top/machine.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index c507925f..980b08c 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -114,7 +114,7 @@ static char up_header[] = char *state_abbrev[] = { - "", "START", "RUN\0\0\0", "SLEEP", "STOP", "ZOMB", "WAIT", "MUTEX" + "", "START", "RUN\0\0\0", "SLEEP", "STOP", "ZOMB", "WAIT", "LOCK" }; @@ -143,7 +143,7 @@ static long cp_diff[CPUSTATES]; int process_states[8]; char *procstatenames[] = { "", " starting, ", " running, ", " sleeping, ", " stopped, ", - " zombie, ", " waiting, ", " mutex, ", + " zombie, ", " waiting, ", " lock, ", NULL }; @@ -533,9 +533,9 @@ char *(*get_userid)(); else strcpy(status, "RUN"); break; - case SMTX: - if (pp->ki_kiflag & KI_MTXBLOCK) { - sprintf(status, "*%.6s", pp->ki_mtxname); + case SLOCK: + if (pp->ki_kiflag & KI_LOCKBLOCK) { + sprintf(status, "*%.6s", pp->ki_lockname); break; } /* fall through */ |