From: Inada Naoki Date: Sat, 31 Aug 2019 00:13:42 +0000 (+0900) Subject: bpo-37990: fix gc stats (GH-15626) X-Git-Tag: v3.9.0a1~724 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=013e52fd340d9ef558013b546f25456f94ee1804;p=thirdparty%2FPython%2Fcpython.git bpo-37990: fix gc stats (GH-15626) --- diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index 7586cd3e0515..134f6d168c96 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); }