perf_counter tools: Warning fixes on 32-bit
authorArjan van de Ven <arjan@linux.intel.com>
Sat, 6 Jun 2009 18:36:38 +0000 (20:36 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 6 Jun 2009 18:46:19 +0000 (20:46 +0200)
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>
tools/perf/builtin-annotate.c
tools/perf/util/symbol.c

index 116a3978b44c73a67f1b29de931e10dbd3911548..4a3c279160c5ce86fcd662c5a9323d398689453c 100644 (file)
@@ -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]);
 }
 
index 23f4f7b3b83d1efc12f04ea349c1d4ac3f5db748..253821d1efdb8c9734823f7722a0add17275af90 100644 (file)
@@ -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;