summaryrefslogtreecommitdiffstats
path: root/Modules/gcmodule.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-05-24 17:24:40 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2014-05-24 17:24:40 (GMT)
commitded3c1b83774b3ca29ec2618f4f4166c7d8e90f2 (patch)
tree66b8f996860988bf0353829f5bcdbadfcf889aff /Modules/gcmodule.c
parent40f6b121c59242d139d2d1ad2f4fd5f1724191e1 (diff)
downloadcpython-ded3c1b83774b3ca29ec2618f4f4166c7d8e90f2.zip
cpython-ded3c1b83774b3ca29ec2618f4f4166c7d8e90f2.tar.gz
cpython-ded3c1b83774b3ca29ec2618f4f4166c7d8e90f2.tar.bz2
Cleanup other stats formatting code in gcmodule.c
Diffstat (limited to 'Modules/gcmodule.c')
-rw-r--r--Modules/gcmodule.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c
index 57a9b19..5e8e17b 100644
--- a/Modules/gcmodule.c
+++ b/Modules/gcmodule.c
@@ -917,7 +917,7 @@ collect(int generation, Py_ssize_t *n_collected, Py_ssize_t *n_uncollectable,
generation);
PySys_WriteStderr("gc: objects in each generation:");
for (i = 0; i < NUM_GENERATIONS; i++)
- PySys_WriteStderr(" %" PY_FORMAT_SIZE_T "d",
+ PySys_FormatStderr(" %zd",
gc_list_size(GEN_HEAD(i)));
_PyTime_gettimeofday(&t1);
@@ -1030,10 +1030,8 @@ collect(int generation, Py_ssize_t *n_collected, Py_ssize_t *n_uncollectable,
if (m == 0 && n == 0)
PySys_WriteStderr("gc: done");
else
- PySys_WriteStderr(
- "gc: done, "
- "%" PY_FORMAT_SIZE_T "d unreachable, "
- "%" PY_FORMAT_SIZE_T "d uncollectable",
+ PySys_FormatStderr(
+ "gc: done, %zd unreachable, %zd uncollectable",
n+m, n);
PySys_WriteStderr(", %.4fs elapsed\n", _PyTime_INTERVAL(t1, t2));
}