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 /ports/stm32/modmachine.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 'ports/stm32/modmachine.c')
| -rw-r--r-- | ports/stm32/modmachine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/modmachine.c b/ports/stm32/modmachine.c index 9f85e3581..dee9689e3 100644 --- a/ports/stm32/modmachine.c +++ b/ports/stm32/modmachine.c @@ -244,7 +244,7 @@ STATIC mp_obj_t machine_info(size_t n_args, const mp_obj_t *args) { if (n_args == 1) { // arg given means dump gc allocation table - gc_dump_alloc_table(); + gc_dump_alloc_table(print); } return mp_const_none; |
