Skip to content

Commit

Permalink
perf_counter tools: Fix incorrect printf formats
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yong Wang authored and Ingo Molnar committed Jun 5, 2009
1 parent 6dc5f2a commit ee7b31f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/perf_counter/builtin-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit ee7b31f

Please sign in to comment.