diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c index 9f6d630d53161e6f314e2efd51a90c3cb329521e..1293b5ebea4dd31327a9e36402577779ec41626b 100644 --- a/tools/perf/util/hist.c +++ b/tools/perf/util/hist.c @@ -599,7 +599,7 @@ static size_t ipchain__fprintf_graph(FILE *fp, struct callchain_list *chain, if (chain->ms.sym) ret += fprintf(fp, "%s\n", chain->ms.sym->name); else - ret += fprintf(fp, "%p\n", (void *)(long)chain->ip); + ret += fprintf(fp, "0x%0" PRIx64 "\n", chain->ip); return ret; }