diff options
author | Juli Mallett <jmallett@FreeBSD.org> | 2002-09-17 02:52:44 +0000 |
---|---|---|
committer | Juli Mallett <jmallett@FreeBSD.org> | 2002-09-17 02:52:44 +0000 |
commit | 760bbf7d6d51dfcc17709a7cf2f548de1b59a37a (patch) | |
tree | 5c528cc245d18ca3cbd2496b4c2280b2b5f33430 /bin/ps/print.c | |
parent | c696fb50b35e26585021e2a4dca6d4c22a50ab36 (diff) | |
download | src-760bbf7d6d51dfcc17709a7cf2f548de1b59a37a.tar.gz src-760bbf7d6d51dfcc17709a7cf2f548de1b59a37a.zip |
Conglomerate printing of ps_pgtok'd data into a PLONG type. I couldn't think
of a better name, except PINT, but I decided to go with assuming LONG to
be safe, rather than assuming INT.
Notes
Notes:
svn path=/head/; revision=103438
Diffstat (limited to 'bin/ps/print.c')
-rw-r--r-- | bin/ps/print.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c index 79ca1ebc3584..e2ae4ade9382 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -319,15 +319,6 @@ s_runame(KINFO *k) void -rss(KINFO *k, VARENT *ve) -{ - VAR *v; - - v = ve->var; - (void)printf("%*ld", v->width, (long)ps_pgtok(k->ki_p->ki_rssize)); -} - -void tdev(KINFO *k, VARENT *ve) { VAR *v; @@ -630,15 +621,6 @@ maxrss(KINFO *k __unused, VARENT *ve) } void -tsize(KINFO *k, VARENT *ve) -{ - VAR *v; - - v = ve->var; - (void)printf("%*ld", v->width, (long)ps_pgtok(k->ki_p->ki_tsize)); -} - -void priorityr(KINFO *k, VARENT *ve) { VAR *v; @@ -714,6 +696,9 @@ printval(void *bp, VAR *v) case KPTR: (void)printf(ofmt, v->width, *(u_long *)bp); break; + case PLONG: + (void)printf(ofmt, v->width, ps_pgtok(*(u_long *)bp)); + break; default: errx(1, "unknown type %d", v->type); } |