Skip to content

Commit dea3fb9

Browse files
committed
py/gc: In sweep debug output, print pointer as a pointer.
Or it will be truncated on a 64-bit platform.
1 parent 5453d88 commit dea3fb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ STATIC void gc_sweep(void) {
289289
}
290290
#endif
291291
free_tail = 1;
292-
DEBUG_printf("gc_sweep(%x)\n", PTR_FROM_BLOCK(block));
292+
DEBUG_printf("gc_sweep(%p)\n", PTR_FROM_BLOCK(block));
293293
#if MICROPY_PY_GC_COLLECT_RETVAL
294294
MP_STATE_MEM(gc_collected)++;
295295
#endif

0 commit comments

Comments
 (0)