diff options
author | Yong Wang <yong.y.wang@linux.intel.com> | 2009-06-04 23:37:35 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-05 02:22:27 -0400 |
commit | ee7b31fe5c5da8a038b96e54ae9fbd5dcab3b1da (patch) | |
tree | 29a344bca927b850a5570e456a4f572f0aa63390 | |
parent | 6dc5f2a41759987e35e757ef00192e7b424563bb (diff) |
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'
Signed-off-by: Yong Wang <yong.y.wang@intel.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <20090605033735.GA20451@ywang-moblin2.bj.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | Documentation/perf_counter/builtin-report.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/perf_counter/builtin-report.c b/Documentation/perf_counter/builtin-report.c index 1a1028d3bc34..eb5424fcbd62 100644 --- a/Documentation/perf_counter/builtin-report.c +++ b/Documentation/perf_counter/builtin-report.c | |||
@@ -236,7 +236,7 @@ static int map__overlap(struct map *l, struct map *r) | |||
236 | 236 | ||
237 | static size_t map__fprintf(struct map *self, FILE *fp) | 237 | static size_t map__fprintf(struct map *self, FILE *fp) |
238 | { | 238 | { |
239 | return fprintf(fp, " %lx-%lx %lx %s\n", | 239 | return fprintf(fp, " %"PRIx64"-%"PRIx64" %"PRIx64" %s\n", |
240 | self->start, self->end, self->pgoff, self->dso->name); | 240 | self->start, self->end, self->pgoff, self->dso->name); |
241 | } | 241 | } |
242 | 242 | ||