diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-09-16 01:27:56 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-09-16 01:27:56 +0000 |
commit | cd38390abf69e4cd6d02cbc8b4959ffbd37a5b96 (patch) | |
tree | 7f54aa632cd14da901fc1d4c15867b2541b85bf0 /usr.bin/vmstat/vmstat.c | |
parent | ef16417ee60710f786359192ffffad95020cbf6d (diff) |
%llu instead of %qu and explicit casts.
Diffstat (limited to 'usr.bin/vmstat/vmstat.c')
-rw-r--r-- | usr.bin/vmstat/vmstat.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index 222a42a48ca..02dcdd00bd9 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -1,5 +1,5 @@ /* $NetBSD: vmstat.c,v 1.29.4.1 1996/06/05 00:21:05 cgd Exp $ */ -/* $OpenBSD: vmstat.c,v 1.59 2001/08/12 12:03:03 heko Exp $ */ +/* $OpenBSD: vmstat.c,v 1.60 2001/09/16 01:27:55 art Exp $ */ /* * Copyright (c) 1980, 1986, 1991, 1993 @@ -941,10 +941,12 @@ domem() first = 0; } size = 1 << i; - (void)printf("%8d %8qu %6qu %18qu %7qu %10qu\n", size, - kp->kb_total - kp->kb_totalfree, - kp->kb_totalfree, kp->kb_calls, - kp->kb_highwat, kp->kb_couldfree); + (void)printf("%8d %8llu %6llu %18llu %7llu %10llu\n", size, + (unsigned long long)(kp->kb_total - kp->kb_totalfree), + (unsigned long long)kp->kb_totalfree, + (unsigned long long)kp->kb_calls, + (unsigned long long)kp->kb_highwat, + (unsigned long long)kp->kb_couldfree); totfree += size * kp->kb_totalfree; } |