Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/vmstat Use appropriate PRI* format specifiers for fi...



details:   https://anonhg.NetBSD.org/src/rev/93c3d3ee7256
branches:  trunk
changeset: 350019:93c3d3ee7256
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Jan 02 09:24:54 2017 +0000

description:
Use appropriate PRI* format specifiers for fixed-bit-size numbers

Should fix i386 build.

diffstat:

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

diffs (29 lines):

diff -r 380849624e5b -r 93c3d3ee7256 usr.bin/vmstat/vmstat.c
--- a/usr.bin/vmstat/vmstat.c   Mon Jan 02 08:44:12 2017 +0000
+++ b/usr.bin/vmstat/vmstat.c   Mon Jan 02 09:24:54 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.211 2017/01/02 02:08:05 pgoyette Exp $ */
+/* $NetBSD: vmstat.c,v 1.212 2017/01/02 09:24:54 pgoyette 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.211 2017/01/02 02:08:05 pgoyette Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.212 2017/01/02 09:24:54 pgoyette Exp $");
 #endif
 #endif /* not lint */
 
@@ -2235,8 +2235,8 @@
                        (void)printf("%06ld.%06ld ",
                            (long int)e->she_tspec.tv_sec,
                            (long int)(e->she_tspec.tv_nsec / 1000));
-                       (void)printf("%s#%ld@%d: ", fn, e->she_callnumber,
-                           e->she_cpunum);
+                       (void)printf("%s#%"PRIu64"@%"PRIu32": ", fn,
+                           e->she_callnumber, e->she_cpunum);
                        (void)printf(fmt, e->she_values[0], e->she_values[1],
                             e->she_values[2], e->she_values[3]);
                        (void)putchar('\n');



Home | Main Index | Thread Index | Old Index