Commit 4c0ee956 authored by Ben McCrea's avatar Ben McCrea Committed by David Brown
Browse files

botutil/botutil_misc: fix compile error for debug log

BOOTUTIL_LOG_LEVEL_DEBUG was giving printf format compile errors

This patch fixes the issue.

Signed-off-by: default avatarBen McCrea <bmccrea@juul.com>
parent cac58f6c
Loading
Loading
Loading
Loading
+5 −5
Changes for boot/bootutil/src/bootutil_misc.c: 5 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -407,7 +407,7 @@ boot_write_magic(const struct flash_area *fap)

    off = boot_magic_off(fap);

    BOOT_LOG_DBG("writing magic; fa_id=%d off=0x%x (0x%x)",
    BOOT_LOG_DBG("writing magic; fa_id=%d off=0x%lx (0x%lx)",
                 fap->fa_id, off, fap->fa_off + off);
    rc = flash_area_write(fap, off, boot_img_magic, BOOT_MAGIC_SZ);
    if (rc != 0) {
@@ -464,7 +464,7 @@ boot_write_copy_done(const struct flash_area *fap)
    uint32_t off;

    off = boot_copy_done_off(fap);
    BOOT_LOG_DBG("writing copy_done; fa_id=%d off=0x%x (0x%x)",
    BOOT_LOG_DBG("writing copy_done; fa_id=%d off=0x%lx (0x%lx)",
                 fap->fa_id, off, fap->fa_off + off);
    return boot_write_trailer_flag(fap, off, BOOT_FLAG_SET);
}
@@ -475,7 +475,7 @@ boot_write_image_ok(const struct flash_area *fap)
    uint32_t off;

    off = boot_image_ok_off(fap);
    BOOT_LOG_DBG("writing image_ok; fa_id=%d off=0x%x (0x%x)",
    BOOT_LOG_DBG("writing image_ok; fa_id=%d off=0x%lx (0x%lx)",
                 fap->fa_id, off, fap->fa_off + off);
    return boot_write_trailer_flag(fap, off, BOOT_FLAG_SET);
}
@@ -494,7 +494,7 @@ boot_write_swap_info(const struct flash_area *fap, uint8_t swap_type,

    BOOT_SET_SWAP_INFO(swap_info, image_num, swap_type);
    off = boot_swap_info_off(fap);
    BOOT_LOG_DBG("writing swap_info; fa_id=%d off=0x%x (0x%x), swap_type=0x%x"
    BOOT_LOG_DBG("writing swap_info; fa_id=%d off=0x%lx (0x%lx), swap_type=0x%x"
                 " image_num=0x%x",
                 fap->fa_id, off, fap->fa_off + off, swap_type, image_num);
    return boot_write_trailer(fap, off, (const uint8_t *) &swap_info, 1);
@@ -506,7 +506,7 @@ boot_write_swap_size(const struct flash_area *fap, uint32_t swap_size)
    uint32_t off;

    off = boot_swap_size_off(fap);
    BOOT_LOG_DBG("writing swap_size; fa_id=%d off=0x%x (0x%x)",
    BOOT_LOG_DBG("writing swap_size; fa_id=%d off=0x%lx (0x%lx)",
                 fap->fa_id, off, fap->fa_off + off);
    return boot_write_trailer(fap, off, (const uint8_t *) &swap_size, 4);
}