Skip to content

Commit ea880d5

Browse files
stinosdpgeorge
authored andcommitted
py/builtinimport: Forward all debug printing to MICROPY_DEBUG_PRINTER.
1 parent ea186de commit ea880d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py/builtinimport.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ mp_obj_t mp_builtin___import__(size_t n_args, const mp_obj_t *args) {
248248
DEBUG_printf("__import__:\n");
249249
for (size_t i = 0; i < n_args; i++) {
250250
DEBUG_printf(" ");
251-
mp_obj_print(args[i], PRINT_REPR);
251+
mp_obj_print_helper(MICROPY_DEBUG_PRINTER, args[i], PRINT_REPR);
252252
DEBUG_printf("\n");
253253
}
254254
#endif
@@ -292,7 +292,7 @@ mp_obj_t mp_builtin___import__(size_t n_args, const mp_obj_t *args) {
292292

293293
#if DEBUG_PRINT
294294
DEBUG_printf("Current module/package: ");
295-
mp_obj_print(this_name_q, PRINT_REPR);
295+
mp_obj_print_helper(MICROPY_DEBUG_PRINTER, this_name_q, PRINT_REPR);
296296
DEBUG_printf(", is_package: %d", is_pkg);
297297
DEBUG_printf("\n");
298298
#endif

0 commit comments

Comments
 (0)