From 760bbf7d6d51dfcc17709a7cf2f548de1b59a37a Mon Sep 17 00:00:00 2001 From: Juli Mallett Date: Tue, 17 Sep 2002 02:52:44 +0000 Subject: 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. --- bin/ps/print.c | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'bin/ps/print.c') 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 @@ -318,15 +318,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) { @@ -629,15 +620,6 @@ maxrss(KINFO *k __unused, VARENT *ve) (void)printf("%*s", v->width, "-"); } -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) { @@ -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); } -- cgit v1.2.3