ps(1): Expand variables to match expanded fields

ki_flag and ki_tdflag have been 'long', not 'int', since 2000 and 2005,
respectively.

Submitted by:	Shawn Wills <swills at isilon dot com>
Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
cem 2016-06-01 19:54:05 +00:00
parent 911fc77d0f
commit c0555173ef
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ static VAR var[] = {
{"etimes", "ELAPSED", NULL, "elapsed-times", USER, elapseds, 0, CHAR,
NULL, 0},
{"euid", "", "uid", NULL, 0, NULL, 0, CHAR, NULL, 0},
{"f", "F", NULL, "flags", 0, kvar, KOFF(ki_flag), INT, "x", 0},
{"f", "F", NULL, "flags", 0, kvar, KOFF(ki_flag), LONG, "lx", 0},
{"f2", "F2", NULL, "flags2", 0, kvar, KOFF(ki_flag2), INT, "08x", 0},
{"fib", "FIB", NULL, "fib", 0, kvar, KOFF(ki_fibnum), INT, "d", 0},
{"flags", "", "f", NULL, 0, NULL, 0, CHAR, NULL, 0},

View File

@ -211,7 +211,7 @@ logname(KINFO *k, VARENT *ve __unused)
char *
state(KINFO *k, VARENT *ve __unused)
{
int flag, tdflags;
long flag, tdflags;
char *cp, *buf;
buf = malloc(16);