Skip to content

Commit

Permalink
perf_counter tools: Warning fixes on 32-bit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
fenrus75 authored and Ingo Molnar committed Jun 6, 2009
1 parent 8647093 commit 7d37a0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tools/perf/builtin-annotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}

Expand Down
2 changes: 1 addition & 1 deletion tools/perf/util/symbol.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static struct symbol *symbol__new(uint64_t start, uint64_t len,

if (verbose >= 2)
printf("new symbol: %016Lx [%08lx]: %s, hist: %p, obj_start: %p\n",
(__u64)start, len, name, self->hist, (void *)obj_start);
(__u64)start, (unsigned long)len, name, self->hist, (void *)(unsigned long)obj_start);

self->obj_start= obj_start;
self->hist = NULL;
Expand Down

0 comments on commit 7d37a0c

Please sign in to comment.