8000 rp2/main: Use mp_printf in nlr_jump_fail. · micropython/micropython@8a03535 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8a03535

Browse files
committed
rp2/main: Use mp_printf in nlr_jump_fail.
The mp_plat_print output is already being used by the subsequent call to mp_obj_print_exception(). And this eliminates all references to printf for this port (at least in non-debug builds). Signed-off-by: Damien George <damien@micropython.org>
1 parent 1978b83 commit 8a03535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/rp2/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ void gc_collect(void) {
234234
}
235235

236236
void nlr_jump_fail(void *val) {
237-
printf("FATAL: uncaught exception %p\n", val);
237+
mp_printf(&mp_plat_print, "FATAL: uncaught exception %p\n", val);
238238
mp_obj_print_exception(&mp_plat_print, MP_OBJ_FROM_PTR(val));
239239
for (;;) {
240240
__breakpoint();

0 commit comments

Comments
 (0)
0