mirror of
https://github.com/python/cpython.git
synced 2025-07-18 16:55:20 +00:00
gh-103650: Fix perf maps address format (#103651)
This commit is contained in:
parent
e8d77b03e0
commit
8d95012c95
3 changed files with 11 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue