Commit 7d37a0cb authored by Arjan van de Ven's avatar Arjan van de Ven Committed by Ingo Molnar

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: default avatarIngo Molnar <mingo@elte.hu>
parent 86470930
......@@ -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]);
}
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment