summaryrefslogtreecommitdiff
path: root/shared/runtime/pyexec.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-01-24 16:57:26 +1100
committerDamien George <damien@micropython.org>2023-01-24 16:57:26 +1100
commit1978b838b7b75d2e525771f95f3532cc623419ef (patch)
tree10b4d97e801cadc9e440dd203a11bae67ed0f898 /shared/runtime/pyexec.c
parent31139b437a05a9cf05608df11843aba3790184b9 (diff)
shared/runtime: Use mp_printf consistently, instead of printf.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'shared/runtime/pyexec.c')
-rw-r--r--shared/runtime/pyexec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shared/runtime/pyexec.c b/shared/runtime/pyexec.c
index 2c9f1e80f..b6e7d8fe6 100644
--- a/shared/runtime/pyexec.c
+++ b/shared/runtime/pyexec.c
@@ -154,12 +154,12 @@ STATIC int parse_compile_execute(const void *source, mp_parse_input_kind_t input
// display debugging info if wanted
if ((exec_flags & EXEC_FLAG_ALLOW_DEBUGGING) && repl_display_debugging_info) {
mp_uint_t ticks = mp_hal_ticks_ms() - start; // TODO implement a function that does this properly
- printf("took " UINT_FMT " ms\n", ticks);
+ mp_printf(&mp_plat_print, "took " UINT_FMT " ms\n", ticks);
// qstr info
{
size_t n_pool, n_qstr, n_str_data_bytes, n_total_bytes;
qstr_pool_info(&n_pool, &n_qstr, &n_str_data_bytes, &n_total_bytes);
- printf("qstr:\n n_pool=%u\n n_qstr=%u\n "
+ mp_printf(&mp_plat_print, "qstr:\n n_pool=%u\n n_qstr=%u\n "
"n_str_data_bytes=%u\n n_total_bytes=%u\n",
(unsigned)n_pool, (unsigned)n_qstr, (unsigned)n_str_data_bytes, (unsigned)n_total_bytes);
}
@@ -713,7 +713,7 @@ int pyexec_frozen_module(const char *name) {
#endif
default:
- printf("could not find module '%s'\n", name);
+ mp_printf(MICROPY_ERROR_PRINTER, "could not find module '%s'\n", name);
return false;
}
}