summaryrefslogtreecommitdiff
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2009-06-06 20:36:38 +0200
committerIngo Molnar <mingo@elte.hu>2009-06-06 20:46:19 +0200
commit7d37a0cbd68c875fa984fa97bcf5c7f4b7950b6d (patch)
tree3a265e3f5499f37f96064d24581b069f3c76eb2a /tools/perf/builtin-annotate.c
parent864709302a80f26fa9da3be5b47304f0b8bae192 (diff)
perf_counter tools: Warning fixes on 32-bit
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/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]);
}