From f340aa750e8a199b50eaf725a3cdb1dfe9975d42 Mon Sep 17 00:00:00 2001 From: bde Date: Thu, 11 Jul 2002 17:28:29 +0000 Subject: Fixed a printf format error that was fatal on alphas. Adding WFORMAT=0 to the Makefile didn't affect this bug because WFORMAT only controls higher- level format checking (not the -Wformat that is implicit in -Wall). Fixed a nearby printf format error that was benign and 3 nearby style bugs. --- bin/ps/print.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bin/ps/print.c') diff --git a/bin/ps/print.c b/bin/ps/print.c index a7c95bd..123aee8 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -487,8 +487,7 @@ vsize(KINFO *k, VARENT *ve) VAR *v; v = ve->var; - (void)printf("%*d", v->width, - (k->ki_p->ki_size/1024)); + (void)printf("%*lu", v->width, (u_long)(k->ki_p->ki_size / 1024)); } void -- cgit v1.1