diff options
author | Damien George <damien@micropython.org> | 2023-03-09 13:50:21 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-03-10 10:58:10 +1100 |
commit | b3c8ab37ec86d19277e9d1dd10b5741ab93022ed (patch) | |
tree | ff7acfeb4f971ff6682538bf72d50c9610c203ca /shared/runtime/pyexec.c | |
parent | f450e94ba03a22cafc38d50f69e8af1c1599c401 (diff) |
py/gc: Make gc_dump_info/gc_dump_alloc_table take a printer as argument.
So that callers can redirect the output if needed.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'shared/runtime/pyexec.c')
-rw-r--r-- | shared/runtime/pyexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/runtime/pyexec.c b/shared/runtime/pyexec.c index b6e7d8fe6..40491650e 100644 --- a/shared/runtime/pyexec.c +++ b/shared/runtime/pyexec.c @@ -167,7 +167,7 @@ STATIC int parse_compile_execute(const void *source, mp_parse_input_kind_t input #if MICROPY_ENABLE_GC // run collection and print GC info gc_collect(); - gc_dump_info(); + gc_dump_info(&mp_plat_print); #endif } #endif |