perf_counter tools: fix incorrect printf formats
PATCH 1/1 perf_counter tools: fix incorrect printf formats
Otherwise the code does not compile on 32-bit boxes.
builtin-report.c: In function 'map__fprintf':
builtin-report.c:240: error: format '%lx' expects type 'long unsigned int', but argument 3 has type 'uint64_t' builtin-report.c:240: error: format '%lx' expects type 'long unsigned int', but argument 4 has type 'uint64_t' builtin-report.c:240: error: format '%lx' expects type 'long unsigned int', but argument 5 has type 'uint64_t'
--- builtin-report.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/perf_counter/builtin-report.c +1 -1
@@ -236,7 +236,7 @@ static int map__overlap(struct map *l, struct map *r)static size_t map__fprintf (struct map *self,FILE *fp) { -return fprintf (fp," %lx-%lx %lx %s\n" , +return fprintf (fp," %" PRIx64"-%" PRIx64" %" PRIx64" %s\n" , self->start, self->end, self->pgoff, self->dso->name); }
[tip:perfcounters/core] perf_counter tools: Fix incorrect printf formats
Commit-ID: ee7b31fe5c5da8a038b96e54ae9fbd5dcab3b1da Gitweb: http://git.kernel.org/tip/ee7b31fe5c5da8a038b96e54ae9fbd5dcab3b1da Author: Yong Wang <[email protected]> AuthorDate: Fri, 5 Jun 2009 11:37:35 +0800 Committer: Ingo Molnar <[email protected]> CommitDate: Fri, 5 Jun 2009 08:22:27 +0200
perf_counter tools: Fix incorrect printf formats
Otherwise the code does not compile on 32-bit boxes.
builtin-report.c: In function 'map__fprintf':
builtin-report.c:240: error: format '%lx' expects type 'long unsigned int', but argument 3 has type 'uint64_t' builtin-report.c:240: error: format '%lx' expects type 'long unsigned int', but argument 4 has type 'uint64_t' builtin-report.c:240: error: format '%lx' expects type 'long unsigned int', but argument 5 has type 'uint64_t'
LKML-Reference: <[email protected]>
--- Documentation/perf_counter/builtin-report.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Documentation/perf_counter/builtin-report.c +1 -1
@@ -236,7 +236,7 @@ static int map__overlap(struct map *l, struct map *r)static size_t map__fprintf (struct map *self,FILE *fp) { -return fprintf (fp," %lx-%lx %lx %s\n" , +return fprintf (fp," %" PRIx64"-%" PRIx64" %" PRIx64" %s\n" , self->start, self->end, self->pgoff, self->dso->name); }