mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Use PY_FORMAT_SIZE_T instead of z for string formatting. Thanks Neal.
This commit is contained in:
parent
114dd944de
commit
09bde04154
2 changed files with 8 additions and 4 deletions
|
@ -171,8 +171,10 @@ static size_t count_reuse = 0;
|
|||
static void
|
||||
show_alloc(void)
|
||||
{
|
||||
fprintf(stderr, "Dict allocations: %zd\n", count_alloc);
|
||||
fprintf(stderr, "Dict reuse through freelist: %zd\n", count_reuse);
|
||||
fprintf(stderr, "Dict allocations: %" PY_FORMAT_SIZE_T "d\n",
|
||||
count_alloc);
|
||||
fprintf(stderr, "Dict reuse through freelist: %" PY_FORMAT_SIZE_T
|
||||
"d\n", count_reuse);
|
||||
fprintf(stderr, "%.2f%% reuse rate\n\n",
|
||||
(100.0*count_reuse/(count_alloc+count_reuse)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue