Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/vmstat Fix format string for ILP32.



details:   https://anonhg.NetBSD.org/src/rev/aaf8563b75d5
branches:  trunk
changeset: 796683:aaf8563b75d5
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Jun 14 01:26:59 2014 +0000

description:
Fix format string for ILP32.

diffstat:

 usr.bin/vmstat/vmstat.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r ac267a605c5a -r aaf8563b75d5 usr.bin/vmstat/vmstat.c
--- a/usr.bin/vmstat/vmstat.c   Fri Jun 13 22:06:00 2014 +0000
+++ b/usr.bin/vmstat/vmstat.c   Sat Jun 14 01:26:59 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.200 2014/06/13 19:10:01 joerg Exp $ */
+/* $NetBSD: vmstat.c,v 1.201 2014/06/14 01:26:59 joerg Exp $ */
 
 /*-
  * Copyright (c) 1998, 2000, 2001, 2007 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
 #if 0
 static char sccsid[] = "@(#)vmstat.c   8.2 (Berkeley) 3/1/95";
 #else
-__RCSID("$NetBSD: vmstat.c,v 1.200 2014/06/13 19:10:01 joerg Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.201 2014/06/14 01:26:59 joerg Exp $");
 #endif
 #endif /* not lint */
 
@@ -1489,7 +1489,8 @@
        inuse /= KILO;
        total /= KILO;
        (void)printf(
-           "\nIn use %ldK, total allocated %ldK; utilization %.1f%%\n",
+           "\nIn use %" PRIu64 "K, "
+           "total allocated %" PRIu64 "K; utilization %.1f%%\n",
            inuse, total, (100.0 * inuse) / total);
 
        free(data);



Home | Main Index | Thread Index | Old Index