From 292a4dd6faa01bb32b91c1262c4fc92d82429d3a Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Wed, 6 Jun 2018 00:00:00 -0500 Subject: [PATCH] ps/output.c: eliminate one irritating compiler warning Signed-off-by: Jim Warner --- ps/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ps/output.c b/ps/output.c index abf657d6..28697ccb 100644 --- a/ps/output.c +++ b/ps/output.c @@ -449,7 +449,7 @@ static int pr_times(char *restrict const outbuf, const proc_t *restrict const pp unsigned long t; setREL1(TIME_ALL) t = rSv(TIME_ALL, ull_int, pp); - return snprintf(outbuf, COLWID, "%u", t); + return snprintf(outbuf, COLWID, "%lu", t); } /* HP-UX puts this (I forget, vsz or vsize?) in kB and uses "sz" for pages.