From ea880d5674b987aa3d3b196d2e6baadcb69c4c06 Mon Sep 17 00:00:00 2001 From: stijn Date: Tue, 21 Sep 2021 12:00:01 +0200 Subject: [PATCH] py/builtinimport: Forward all debug printing to MICROPY_DEBUG_PRINTER. --- py/builtinimport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/builtinimport.c b/py/builtinimport.c index cdee5e4070..08921f873b 100644 --- a/py/builtinimport.c +++ b/py/builtinimport.c @@ -248,7 +248,7 @@ mp_obj_t mp_builtin___import__(size_t n_args, const mp_obj_t *args) { DEBUG_printf("__import__:\n"); for (size_t i = 0; i < n_args; i++) { DEBUG_printf(" "); - mp_obj_print(args[i], PRINT_REPR); + mp_obj_print_helper(MICROPY_DEBUG_PRINTER, args[i], PRINT_REPR); DEBUG_printf("\n"); } #endif @@ -292,7 +292,7 @@ mp_obj_t mp_builtin___import__(size_t n_args, const mp_obj_t *args) { #if DEBUG_PRINT DEBUG_printf("Current module/package: "); - mp_obj_print(this_name_q, PRINT_REPR); + mp_obj_print_helper(MICROPY_DEBUG_PRINTER, this_name_q, PRINT_REPR); DEBUG_printf(", is_package: %d", is_pkg); DEBUG_printf("\n"); #endif