boot_serial: Fix `format` warning

By explicitly casting to unsigned int.

Signed-off-by: Lluis Campos <lluis.campos@northern.tech>
(cherry picked from commit 52e2afc2f8)
This commit is contained in:
Lluis Campos 2024-08-20 18:21:51 +02:00 committed by Jamie McCrae
parent 157547c889
commit 0a88733ddd
1 changed files with 1 additions and 1 deletions

View File

@ -796,7 +796,7 @@ bs_upload(char *buf, int len)
rem_bytes = 0; 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 */ /* 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 defined(MCUBOOT_SERIAL_UNALIGNED_BUFFER_SIZE) && MCUBOOT_SERIAL_UNALIGNED_BUFFER_SIZE > 0
if (flash_area_align(fap) > 1 && if (flash_area_align(fap) > 1 &&