diff options
author | Inada Naoki <songofacandy@gmail.com> | 2019-08-31 01:50:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-31 01:50:27 (GMT) |
commit | 97a31c7b486c45ba9c21cab5fb96337859a60275 (patch) | |
tree | e91a43674bdbb26550eaad278e56498043615660 /Modules/gcmodule.c | |
parent | bd8ca9aaccef0569c4b5c2e6dad0feb869ffd6c5 (diff) | |
download | cpython-97a31c7b486c45ba9c21cab5fb96337859a60275.zip cpython-97a31c7b486c45ba9c21cab5fb96337859a60275.tar.gz cpython-97a31c7b486c45ba9c21cab5fb96337859a60275.tar.bz2 |
[3.8] bpo-37990: fix gc stats (GH-15626)
(cherry picked from commit 013e52f)
Diffstat (limited to 'Modules/gcmodule.c')
-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 21839d9..2741edc 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); } |