From dea3fb93c74ae61dc5168b62a780dc6ce7865e09 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 9 Dec 2017 01:54:01 +0200 Subject: [PATCH] py/gc: In sweep debug output, print pointer as a pointer. Or it will be truncated on a 64-bit platform. --- py/gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/gc.c b/py/gc.c index 1b99ab4cfa..734f5c3648 100644 --- a/py/gc.c +++ b/py/gc.c @@ -289,7 +289,7 @@ STATIC void gc_sweep(void) { } #endif free_tail = 1; - DEBUG_printf("gc_sweep(%x)\n", PTR_FROM_BLOCK(block)); + DEBUG_printf("gc_sweep(%p)\n", PTR_FROM_BLOCK(block)); #if MICROPY_PY_GC_COLLECT_RETVAL MP_STATE_MEM(gc_collected)++; #endif