Skip to content

Commit 52e2afc

Browse files
lluiscamposnordicjm
authored andcommitted
boot_serial: Fix format warning
By explicitly casting to unsigned int. Signed-off-by: Lluis Campos <[email protected]>
1 parent dd4d654 commit 52e2afc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/boot_serial/src/boot_serial.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ bs_upload(char *buf, int len)
941941
rem_bytes = 0;
942942
}
943943

944-
BOOT_LOG_DBG("Writing at 0x%x until 0x%x", curr_off, curr_off + img_chunk_len);
944+
BOOT_LOG_DBG("Writing at 0x%x until 0x%x", curr_off, curr_off + (uint32_t)img_chunk_len);
945945
/* Write flash aligned chunk, note that img_chunk_len now holds aligned length */
946946
#if defined(MCUBOOT_SERIAL_UNALIGNED_BUFFER_SIZE) && MCUBOOT_SERIAL_UNALIGNED_BUFFER_SIZE > 0
947947
if (flash_area_align(fap) > 1 &&

0 commit comments

Comments
 (0)