aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/top/machine.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2002-10-02 20:33:52 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2002-10-02 20:33:52 +0000
commit0d6326492bf73633cadded7aff64290d93103128 (patch)
treefd16f0ff58f4e919bd04b0c16cd0fdeb36340496 /usr.bin/top/machine.c
parent551cf4e1503e868324f01a6c98262a8e4c7b8cdb (diff)
downloadsrc-0d6326492bf73633cadded7aff64290d93103128.tar.gz
src-0d6326492bf73633cadded7aff64290d93103128.zip
Catch up to SMTX -> SLOCK changes.
Notes
Notes: svn path=/head/; revision=104388
Diffstat (limited to 'usr.bin/top/machine.c')
-rw-r--r--usr.bin/top/machine.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index c507925feacf..980b08c2ea56 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 */