Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/pmc PRIu64



details:   https://anonhg.NetBSD.org/src/rev/d37503b06d64
branches:  trunk
changeset: 352014:d37503b06d64
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri Mar 10 15:06:20 2017 +0000

description:
PRIu64

diffstat:

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

diffs (30 lines):

diff -r 784cfdb02b53 -r d37503b06d64 usr.bin/pmc/pmc.c
--- a/usr.bin/pmc/pmc.c Fri Mar 10 14:54:12 2017 +0000
+++ b/usr.bin/pmc/pmc.c Fri Mar 10 15:06:20 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmc.c,v 1.20 2017/03/10 13:09:11 maxv Exp $    */
+/*     $NetBSD: pmc.c,v 1.21 2017/03/10 15:06:20 maxv Exp $    */
 
 /*
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -66,9 +66,10 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: pmc.c,v 1.20 2017/03/10 13:09:11 maxv Exp $");
+__RCSID("$NetBSD: pmc.c,v 1.21 2017/03/10 15:06:20 maxv Exp $");
 #endif
 
+#include <inttypes.h>
 #include <sys/types.h>
 #include <sys/stdbool.h>
 #include <machine/sysarch.h>
@@ -513,7 +514,7 @@
        for (i = 0; i < n; i++) {
                printf("%zu\t\t", i);
                for (j = 0; j < nval; j++) {
-                       printf("%llu\t\t", cpuval[i][j].ctrval);
+                       printf("%" PRIu64 "\t\t", cpuval[i][j].ctrval);
                }
                printf("\n");
        }



Home | Main Index | Thread Index | Old Index