perf report: Fix 32-bit printf format
authorIngo Molnar <mingo@elte.hu>
Mon, 15 Jun 2009 14:15:19 +0000 (16:15 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 15 Jun 2009 14:18:02 +0000 (16:18 +0200)
commite2eae0f5605b90a0838608043c21050b08b6dd95
tree70d5ee6e6e6f8d97cd26e99ca47a274d72baf339
parent9974458e2f9a11dbd2f4bd14fab5a79af4907b41
perf report: Fix 32-bit printf format

Yong Wang reported the following compiler warning:

 builtin-report.c: In function 'process_overflow_event':
 builtin-report.c:984: error: cast to pointer from integer of different size

Which happens because we try to print ->ips[] out with a limited
format, losing the high 32 bits. Print it out using %016Lx instead.

Reported-by: Yong Wang <yong.y.wang@linux.intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-report.c