summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorArthur Pastel <arthur.pastel@gmail.com>2023-05-07 21:42:26 +0200
committerGitHub <noreply@github.com>2023-05-07 20:42:26 +0100
commit8d95012c95988dc517db6e09348aab996868699c (patch)
treed964d20c0877c551d81d644e22e013a54fb06fe6 /Python
parente8d77b03e08a4c7e7dde0830c5a12a0b41ff7c33 (diff)
downloadcpython-git-8d95012c95988dc517db6e09348aab996868699c.tar.gz
gh-103650: Fix perf maps address format (#103651)
Diffstat (limited to 'Python')
-rw-r--r--Python/perf_trampoline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/perf_trampoline.c b/Python/perf_trampoline.c
index 1957ab82c3..3b183280e1 100644
--- a/Python/perf_trampoline.c
+++ b/Python/perf_trampoline.c
@@ -253,7 +253,7 @@ perf_map_write_entry(void *state, const void *code_addr,
NULL);
return;
}
- fprintf(method_file, "%p %x py::%s:%s\n", code_addr, code_size, entry,
+ fprintf(method_file, "%" PRIxPTR " %x py::%s:%s\n", (uintptr_t) code_addr, code_size, entry,
filename);
fflush(method_file);
}