summaryrefslogtreecommitdiffstats
path: root/Objects/obmalloc.c
diff options
context:
space:
mode:
authorTim Peters <tim@python.org>2013-09-06 04:04:26 (GMT)
committerTim Peters <tim@python.org>2013-09-06 04:04:26 (GMT)
commitb2372959abba41f268674df48da35e1b9f9d3529 (patch)
tree70d34d3549f941c30237a83fde9586fc6df356b3 /Objects/obmalloc.c
parentdb2c6819ba3ca142afc406101b0ba498f387ca66 (diff)
parenteaa3bcc370cffe080e637fc1af592add9ff59793 (diff)
downloadcpython-b2372959abba41f268674df48da35e1b9f9d3529.zip
cpython-b2372959abba41f268674df48da35e1b9f9d3529.tar.gz
cpython-b2372959abba41f268674df48da35e1b9f9d3529.tar.bz2
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".
Diffstat (limited to 'Objects/obmalloc.c')
-rw-r--r--Objects/obmalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c
index f146222..db774b8 100644
--- a/Objects/obmalloc.c
+++ b/Objects/obmalloc.c
@@ -2035,7 +2035,7 @@ _PyDebugAllocatorStats(FILE *out,
char buf1[128];
char buf2[128];
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);
PyOS_snprintf(buf2, sizeof(buf2),
"%48s ", buf1);