diff --git a/qemu-arm/main.c b/qemu-arm/main.c index 1673c82afd..0507744126 100644 --- a/qemu-arm/main.c +++ b/qemu-arm/main.c @@ -27,7 +27,7 @@ void do_str(const char *src) { nlr_pop(); } else { // uncaught exception - mp_obj_print_exception(&mp_extern_printf_wrapper, (mp_obj_t)nlr.ret_val); + mp_obj_print_exception(&mp_plat_print, (mp_obj_t)nlr.ret_val); } } diff --git a/qemu-arm/test_main.c b/qemu-arm/test_main.c index a529133532..1d699d3e25 100644 --- a/qemu-arm/test_main.c +++ b/qemu-arm/test_main.c @@ -38,7 +38,7 @@ inline void do_str(const char *src) { tinytest_set_test_skipped_(); return; } - mp_obj_print_exception(&mp_extern_printf_wrapper, exc); + mp_obj_print_exception(&mp_plat_print, exc); tt_abort_msg("Uncaught exception"); } end: