mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Nerge 3.3 into default.
Issue #18942: sys._debugmallocstats() output was damaged on Windows. _PyDebugAllocatorStats() called PyOS_snprintf() with a %zd format code, but MS doesn't support that code. Interpolated PY_FORMAT_SIZE_T in place of the "z".
This commit is contained in:
commit
b2372959ab
2 changed files with 3 additions and 1 deletions
|
@ -10,6 +10,8 @@ Projected Release date: 2013-09-08
|
||||||
Core and Builtins
|
Core and Builtins
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
- Issue #18942: sys._debugmallocstats() output was damaged on Windows.
|
||||||
|
|
||||||
- Issue #18571: Implementation of the PEP 446: file descriptors and file
|
- Issue #18571: Implementation of the PEP 446: file descriptors and file
|
||||||
handles are now created non-inheritable; add functions
|
handles are now created non-inheritable; add functions
|
||||||
os.get/set_inheritable(), os.get/set_handle_inheritable() and
|
os.get/set_inheritable(), os.get/set_handle_inheritable() and
|
||||||
|
|
|
@ -2035,7 +2035,7 @@ _PyDebugAllocatorStats(FILE *out,
|
||||||
char buf1[128];
|
char buf1[128];
|
||||||
char buf2[128];
|
char buf2[128];
|
||||||
PyOS_snprintf(buf1, sizeof(buf1),
|
PyOS_snprintf(buf1, sizeof(buf1),
|
||||||
"%d %ss * %zd bytes each",
|
"%d %ss * %" PY_FORMAT_SIZE_T "d bytes each",
|
||||||
num_blocks, block_name, sizeof_block);
|
num_blocks, block_name, sizeof_block);
|
||||||
PyOS_snprintf(buf2, sizeof(buf2),
|
PyOS_snprintf(buf2, sizeof(buf2),
|
||||||
"%48s ", buf1);
|
"%48s ", buf1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue