perf probe: Fix ARM 32 building error
authorWang Nan <[email protected]>
Wed, 8 Apr 2015 02:14:34 +0000 (02:14 +0000)
committerArnaldo Carvalho de Melo <[email protected]>
Wed, 8 Apr 2015 13:49:48 +0000 (10:49 -0300)
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 <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Zefan Li <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/probe-event.c

index 4fd49f0210733a86992400dd004197cebf01bb61..b78851732a71c0d2ccb16b3126328a0298457bd2 100644 (file)
@@ -322,7 +322,8 @@ static int find_alternative_probe_point(struct debuginfo *dinfo,
                ret = -ENOENT;
                goto out;
        }
-       pr_debug("Symbol %s address found : %lx\n", pp->function, address);
+       pr_debug("Symbol %s address found : %" PRIx64 "\n",
+                       pp->function, address);
 
        ret = debuginfo__find_probe_point(dinfo, (unsigned long)address,
                                          result);