From 8e86933b220e6b352d9ab9c58b20dfb52274876d Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 4 May 2002 22:27:40 +0000 Subject: 2002-05-03 Roland McGrath * vmstat.c (print_val): Use %lld printf format for val_t. --- utils/vmstat.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/utils/vmstat.c b/utils/vmstat.c index 08449e07..4166e269 100644 --- a/utils/vmstat.c +++ b/utils/vmstat.c @@ -1,8 +1,7 @@ /* Print vm statistics - Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc. - - Written by Miles Bader + Copyright (C) 1996,97,99,2002 Free Software Foundation, Inc. + Written by Miles Bader This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -104,7 +103,7 @@ print_val (val_t val, enum val_type type, size_t size_units, int fwidth, int sign) { if (type == PCENT) - printf (sign ? "%+*d%%" : "%*d%%", fwidth - 1, val); + printf (sign ? "%+*lld%%" : "%*lld%%", fwidth - 1, val); else if ((type == SIZE || type == PAGESZ) && size_units == 0) { float fval = val; @@ -125,7 +124,7 @@ print_val (val_t val, enum val_type type, { if ((type == SIZE || type == PAGESZ) && size_units > 0) val /= size_units; - printf (sign ? "%+*d" : "%*d", fwidth, val); + printf (sign ? "%+*lld" : "%*lld", fwidth, val); } } -- cgit v1.2.3