Skip to content

Commit

Permalink
boot_serial: Fix format warning
Browse files Browse the repository at this point in the history
By explicitly casting to unsigned int.

Signed-off-by: Lluis Campos <[email protected]>
  • Loading branch information
lluiscampos authored and nordicjm committed Aug 27, 2024
1 parent dd4d654 commit 52e2afc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boot/boot_serial/src/boot_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,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 &&
Expand Down

0 comments on commit 52e2afc

Please sign in to comment.