summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-04 22:27:40 +0000
committerRoland McGrath <roland@gnu.org>2002-05-04 22:27:40 +0000
commit8e86933b220e6b352d9ab9c58b20dfb52274876d (patch)
treea53498a6f630363f69da34f3c9a97fcef9777d58
parentee0a0fe8af3abb2339e7408ff88c7efeddda2dad (diff)
2002-05-03 Roland McGrath <roland@frob.com>
* vmstat.c (print_val): Use %lld printf format for val_t.
-rw-r--r--utils/vmstat.c9
1 files 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 <miles@gnu.ai.mit.edu>
+ Copyright (C) 1996,97,99,2002 Free Software Foundation, Inc.
+ Written by Miles Bader <miles@gnu.org>
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);
}
}