summaryrefslogtreecommitdiffstats
path: root/bin/ps
diff options
context:
space:
mode:
authorcem <cem@FreeBSD.org>2016-06-01 19:54:05 +0000
committercem <cem@FreeBSD.org>2016-06-01 19:54:05 +0000
commitc0555173efe9b1a51d8ba237d94d3fc6e9407006 (patch)
treedfc65054977135db49b7251c7254d31f1e829993 /bin/ps
parent911fc77d0fd6812bd44d3cd82ed4274bd0ab6115 (diff)
downloadFreeBSD-src-c0555173efe9b1a51d8ba237d94d3fc6e9407006.zip
FreeBSD-src-c0555173efe9b1a51d8ba237d94d3fc6e9407006.tar.gz
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
Diffstat (limited to 'bin/ps')
-rw-r--r--bin/ps/keyword.c2
-rw-r--r--bin/ps/print.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c
index b802c37..2482490 100644
--- a/bin/ps/keyword.c
+++ b/bin/ps/keyword.c
@@ -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},
diff --git a/bin/ps/print.c b/bin/ps/print.c
index 91daa44..1cbcf62 100644
--- a/bin/ps/print.c
+++ b/bin/ps/print.c
@@ -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);
OpenPOWER on IntegriCloud