summaryrefslogtreecommitdiff
path: root/shared/runtime/mpirq.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/mpirq.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/mpirq.c')
-rw-r--r--shared/runtime/mpirq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/runtime/mpirq.c b/shared/runtime/mpirq.c
index f9a85ebbd..acd727403 100644
--- a/shared/runtime/mpirq.c
+++ b/shared/runtime/mpirq.c
@@ -81,8 +81,8 @@ void mp_irq_handler(mp_irq_obj_t *self) {
// Uncaught exception; disable the callback so that it doesn't run again
self->methods->trigger(self->parent, 0);
self->handler = mp_const_none;
- printf("Uncaught exception in IRQ callback handler\n");
- mp_obj_print_exception(&mp_plat_print, MP_OBJ_FROM_PTR(nlr.ret_val));
+ mp_printf(MICROPY_ERROR_PRINTER, "Uncaught exception in IRQ callback handler\n");
+ mp_obj_print_exception(MICROPY_ERROR_PRINTER, MP_OBJ_FROM_PTR(nlr.ret_val));
}
gc_unlock();
mp_sched_unlock();