Commit 52e2afc2 authored by Lluis Campos's avatar Lluis Campos Committed by Jamie
Browse files

boot_serial: Fix `format` warning

By explicitly casting to unsigned int.

Signed-off-by: default avatarLluis Campos <lluis.campos@northern.tech>
parent dd4d6541
Loading
Loading
Loading
Loading
+1 −1
Changes for boot/boot_serial/src/boot_serial.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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 &&