diff options
author | des <des@FreeBSD.org> | 2002-07-15 16:05:15 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-07-15 16:05:15 +0000 |
commit | 71010f625753d17bf8b4862855f05a2743e0f93a (patch) | |
tree | 95098f74715e623bc6dce74ff9d53cb81b7d900c /usr.sbin/sa/main.c | |
parent | 2cb3bd675e598f91b0bf2af63cffb62153b7a0d0 (diff) | |
download | FreeBSD-src-71010f625753d17bf8b4862855f05a2743e0f93a.zip FreeBSD-src-71010f625753d17bf8b4862855f05a2743e0f93a.tar.gz |
Get rid of %qd, and unbreak Alpha build.
Diffstat (limited to 'usr.sbin/sa/main.c')
-rw-r--r-- | usr.sbin/sa/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/sa/main.c b/usr.sbin/sa/main.c index 684d951..1910c4f 100644 --- a/usr.sbin/sa/main.c +++ b/usr.sbin/sa/main.c @@ -49,6 +49,7 @@ static const char rcsid[] = #include <err.h> #include <fcntl.h> #include <signal.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -361,10 +362,11 @@ acct_load(pn, wr) if (sflag || (mflag && !qflag)) usracct_add(&ci); } else if (!qflag) - printf("%6lu %12.2f cpu %12quk mem %12qu io %s\n", + printf("%6lu %12.2f cpu %12juk mem %12ju io %s\n", ci.ci_uid, (ci.ci_utime + ci.ci_stime) / (double) AHZ, - ci.ci_mem, ci.ci_io, ci.ci_comm); + (uintmax_t)ci.ci_mem, (uintmax_t)ci.ci_io, + ci.ci_comm); } /* finally, return the file descriptor for possible truncation */ |