From 07321a41148b6da07e28161cacd9c53fc7d62af2 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Wed, 22 Jun 2022 17:26:47 -0400 Subject: [PATCH] ch32f1: Fixed another broken debug print that made assumptions about %x and %d that are wrong --- src/target/ch32f1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/ch32f1.c b/src/target/ch32f1.c index 3fe7e24..ec1c84b 100644 --- a/src/target/ch32f1.c +++ b/src/target/ch32f1.c @@ -293,7 +293,7 @@ static int ch32f1_flash_write(struct target_flash *f, target_addr org_dest = dest; const void *org_src = src; #endif - DEBUG_INFO("CH32: flash write 0x%x ,size=%d\n", dest, len); + DEBUG_INFO("CH32: flash write 0x%" PRIx32 " ,size=%zu\n", dest, len); while (length > 0) {