diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin-annotate.c | 4 | ||||
-rw-r--r-- | tools/perf/util/symbol.c | 2 |
2 files changed, 3 insertions, 3 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) | |||
668 | 668 | ||
669 | if (verbose >= 3) | 669 | if (verbose >= 3) |
670 | printf("%p %s: count++ [ip: %p, %08Lx] => %Ld\n", | 670 | printf("%p %s: count++ [ip: %p, %08Lx] => %Ld\n", |
671 | (void *)he->sym->start, | 671 | (void *)(unsigned long)he->sym->start, |
672 | he->sym->name, | 672 | he->sym->name, |
673 | (void *)ip, ip - he->sym->start, | 673 | (void *)(unsigned long)ip, ip - he->sym->start, |
674 | sym->hist[offset]); | 674 | sym->hist[offset]); |
675 | } | 675 | } |
676 | 676 | ||
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index 23f4f7b3b83d..253821d1efdb 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c | |||
@@ -21,7 +21,7 @@ static struct symbol *symbol__new(uint64_t start, uint64_t len, | |||
21 | 21 | ||
22 | if (verbose >= 2) | 22 | if (verbose >= 2) |
23 | printf("new symbol: %016Lx [%08lx]: %s, hist: %p, obj_start: %p\n", | 23 | printf("new symbol: %016Lx [%08lx]: %s, hist: %p, obj_start: %p\n", |
24 | (__u64)start, len, name, self->hist, (void *)obj_start); | 24 | (__u64)start, (unsigned long)len, name, self->hist, (void *)(unsigned long)obj_start); |
25 | 25 | ||
26 | self->obj_start= obj_start; | 26 | self->obj_start= obj_start; |
27 | self->hist = NULL; | 27 | self->hist = NULL; |