aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/probe-event.c
diff options
context:
space:
mode:
authorWang Nan <wangnan0@huawei.com>2015-04-07 22:14:34 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-04-08 09:49:48 -0400
commitf6c15621f04b97ce882c66e5055f0ac325fb8eb8 (patch)
treeb38739fbcf865e29dd63c240210ac8d641230d50 /tools/perf/util/probe-event.c
parent2c5e8c52c6354f77c4019357be8231bcc34456f8 (diff)
perf probe: Fix ARM 32 building error
Commit 9b118acae310f57baee770b5db402500d8695e50 ("perf probe: Fix to handle aliased symbols in glibc") uses an absolute format '%lx' to print u64 argument, which causes compiling error on ARM 32. This patch replaces it with PRIx64. Signed-off-by: Wang Nan <wangnan0@huawei.com> Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Zefan Li <lizefan@huawei.com> Cc: pi3orama@163.com Link: http://lkml.kernel.org/r/1428459274-138470-1-git-send-email-wangnan0@huawei.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/probe-event.c')
-rw-r--r--tools/perf/util/probe-event.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c
index 4fd49f021073..b78851732a71 100644
--- a/tools/perf/util/probe-event.c
+++ b/tools/perf/util/probe-event.c
@@ -322,7 +322,8 @@ static int find_alternative_probe_point(struct debuginfo *dinfo,
322 ret = -ENOENT; 322 ret = -ENOENT;
323 goto out; 323 goto out;
324 } 324 }
325 pr_debug("Symbol %s address found : %lx\n", pp->function, address); 325 pr_debug("Symbol %s address found : %" PRIx64 "\n",
326 pp->function, address);
326 327
327 ret = debuginfo__find_probe_point(dinfo, (unsigned long)address, 328 ret = debuginfo__find_probe_point(dinfo, (unsigned long)address,
328 result); 329 result);