Module Name: src
Committed By: pgoyette
Date: Mon Jan 2 09:24:55 UTC 2017
Modified Files:
src/usr.bin/vmstat: vmstat.c
Log Message:
Use appropriate PRI* format specifiers for fixed-bit-size numbers
Should fix i386 build.
To generate a diff of this commit:
cvs rdiff -u -r1.211 -r1.212 src/usr.bin/vmstat/vmstat.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/vmstat/vmstat.c
diff -u src/usr.bin/vmstat/vmstat.c:1.211 src/usr.bin/vmstat/vmstat.c:1.212
--- src/usr.bin/vmstat/vmstat.c:1.211 Mon Jan 2 02:08:05 2017
+++ src/usr.bin/vmstat/vmstat.c Mon Jan 2 09:24:54 2017
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
#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 @@ hist_dodump_sysctl(int mib[], unsigned i
(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');