aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
authorArjan van de Ven <[email protected]>2009-06-06 18:36:38 +0000
committerIngo Molnar <[email protected]>2009-06-06 18:46:19 +0000
commit7d37a0cbd68c875fa984fa97bcf5c7f4b7950b6d (patch)
tree3a265e3f5499f37f96064d24581b069f3c76eb2a /tools/perf/builtin-annotate.c
parentperf_counter tools: Move from Documentation/perf_counter/ to tools/perf/ (diff)
downloadkernel-7d37a0cbd68c875fa984fa97bcf5c7f4b7950b6d.tar.gz
kernel-7d37a0cbd68c875fa984fa97bcf5c7f4b7950b6d.zip
perf_counter tools: Warning fixes on 32-bit
Cc: Peter Zijlstra <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
-rw-r--r--tools/perf/builtin-annotate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c
index 116a3978b44c..4a3c279160c5 100644
--- a/tools/perf/builtin-annotate.c
+++ b/tools/perf/builtin-annotate.c
@@ -668,9 +668,9 @@ static void hist_hit(struct hist_entry *he, uint64_t ip)
if (verbose >= 3)
printf("%p %s: count++ [ip: %p, %08Lx] => %Ld\n",
- (void *)he->sym->start,
+ (void *)(unsigned long)he->sym->start,
he->sym->name,
- (void *)ip, ip - he->sym->start,
+ (void *)(unsigned long)ip, ip - he->sym->start,
sym->hist[offset]);
}