diff options
author | Inada Naoki <songofacandy@gmail.com> | 2019-08-31 00:13:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-31 00:13:42 (GMT) |
commit | 013e52fd340d9ef558013b546f25456f94ee1804 (patch) | |
tree | be17df3ecb098eadbc715dbaf9b44d9034b5f2bd | |
parent | d765d81b8fb5ab707bfe8b079348e5038c298aa3 (diff) | |
download | cpython-013e52fd340d9ef558013b546f25456f94ee1804.zip cpython-013e52fd340d9ef558013b546f25456f94ee1804.tar.gz cpython-013e52fd340d9ef558013b546f25456f94ee1804.tar.bz2 |
bpo-37990: fix gc stats (GH-15626)
-rw-r--r-- | Modules/gcmodule.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index 7586cd3..134f6d1 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -1115,8 +1115,9 @@ collect(struct _gc_runtime_state *state, int generation, } if (state->debug & DEBUG_STATS) { double d = _PyTime_AsSecondsDouble(_PyTime_GetMonotonicClock() - t1); - PySys_FormatStderr( - "gc: done, %zd unreachable, %zd uncollectable, %.4fs elapsed\n", + PySys_WriteStderr( + "gc: done, %" PY_FORMAT_SIZE_T "d unreachable, " + "%" PY_FORMAT_SIZE_T "d uncollectable, %.4fs elapsed\n", n+m, n, d); } |