summaryrefslogtreecommitdiff
path: root/py/modmicropython.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-03-09 13:50:21 +1100
committerDamien George <damien@micropython.org>2023-03-10 10:58:10 +1100
commitb3c8ab37ec86d19277e9d1dd10b5741ab93022ed (patch)
treeff7acfeb4f971ff6682538bf72d50c9610c203ca /py/modmicropython.c
parentf450e94ba03a22cafc38d50f69e8af1c1599c401 (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 'py/modmicropython.c')
-rw-r--r--py/modmicropython.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/modmicropython.c b/py/modmicropython.c
index c717926e6..bdb1e8b9b 100644
--- a/py/modmicropython.c
+++ b/py/modmicropython.c
@@ -81,10 +81,10 @@ mp_obj_t mp_micropython_mem_info(size_t n_args, const mp_obj_t *args) {
mp_printf(&mp_plat_print, "stack: " UINT_FMT "\n", mp_stack_usage());
#endif
#if MICROPY_ENABLE_GC
- gc_dump_info();
+ gc_dump_info(&mp_plat_print);
if (n_args == 1) {
// arg given means dump gc allocation table
- gc_dump_alloc_table();
+ gc_dump_alloc_table(&mp_plat_print);
}
#else
(void)n_args;