summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/pyexec.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-12-21 00:24:58 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-12-21 00:26:10 +0200
commit6aaccc484c0f07354638a3581ade3d264061645a (patch)
treec26f15e6b221ea21186648342ebe0396786e063e /stmhal/pyexec.c
parentbf19586c53d1473255f87ea651bd40a6435d89d3 (diff)
downloadmicropython-6aaccc484c0f07354638a3581ade3d264061645a.tar.gz
micropython-6aaccc484c0f07354638a3581ade3d264061645a.zip
stmhal: Use gc_dump_info() function instead of adhoc code.
Diffstat (limited to 'stmhal/pyexec.c')
-rw-r--r--stmhal/pyexec.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/stmhal/pyexec.c b/stmhal/pyexec.c
index 00cd95362d..08f16b674f 100644
--- a/stmhal/pyexec.c
+++ b/stmhal/pyexec.c
@@ -137,14 +137,7 @@ STATIC int parse_compile_execute(mp_lexer_t *lex, mp_parse_input_kind_t input_ki
}
// GC info
- {
- gc_info_t info;
- gc_info(&info);
- printf("GC:\n");
- printf(" " UINT_FMT " total\n", info.total);
- printf(" " UINT_FMT " : " UINT_FMT "\n", info.used, info.free);
- printf(" 1=" UINT_FMT " 2=" UINT_FMT " m=" UINT_FMT "\n", info.num_1block, info.num_2block, info.max_block);
- }
+ gc_dump_info();
}
finish: