diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-06-15 16:15:19 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-15 16:18:02 +0200 |
commit | e2eae0f5605b90a0838608043c21050b08b6dd95 (patch) | |
tree | 70d5ee6e6e6f8d97cd26e99ca47a274d72baf339 /tools | |
parent | 9974458e2f9a11dbd2f4bd14fab5a79af4907b41 (diff) | |
download | op-kernel-dev-e2eae0f5605b90a0838608043c21050b08b6dd95.zip op-kernel-dev-e2eae0f5605b90a0838608043c21050b08b6dd95.tar.gz |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin-report.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 1e2f5dd..f86bb07 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c @@ -982,7 +982,7 @@ process_overflow_event(event_t *event, unsigned long offset, unsigned long head) chain->nr); for (i = 0; i < chain->nr; i++) - dprintf("..... %2d: %p\n", i, (void *)chain->ips[i]); + dprintf("..... %2d: %016Lx\n", i, chain->ips[i]); } if (collapse_syscalls) { /* |