From 0a88733ddd806f0f4e0e4fee6aac95550947dac5 Mon Sep 17 00:00:00 2001 From: Lluis Campos Date: Tue, 20 Aug 2024 18:21:51 +0200 Subject: [PATCH] boot_serial: Fix `format` warning By explicitly casting to unsigned int. Signed-off-by: Lluis Campos (cherry picked from commit 52e2afc2f809c424b0f337f56059d1dfcc7e6d98) --- boot/boot_serial/src/boot_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/boot_serial/src/boot_serial.c b/boot/boot_serial/src/boot_serial.c index f369084b..dceb2d82 100644 --- a/boot/boot_serial/src/boot_serial.c +++ b/boot/boot_serial/src/boot_serial.c @@ -796,7 +796,7 @@ bs_upload(char *buf, int len) rem_bytes = 0; } - BOOT_LOG_DBG("Writing at 0x%x until 0x%x", curr_off, curr_off + img_chunk_len); + BOOT_LOG_DBG("Writing at 0x%x until 0x%x", curr_off, curr_off + (uint32_t)img_chunk_len); /* Write flash aligned chunk, note that img_chunk_len now holds aligned length */ #if defined(MCUBOOT_SERIAL_UNALIGNED_BUFFER_SIZE) && MCUBOOT_SERIAL_UNALIGNED_BUFFER_SIZE > 0 if (flash_area_align(fap) > 1 &&