Commit 5e6ea22c authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

bootutil: Add debug for encrypted key writing

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent 3cabd927
Loading
Loading
Loading
Loading
+3 −0
Changes for boot/bootutil/src/bootutil_misc.c: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -525,6 +525,9 @@ boot_write_enc_key(const struct flash_area *fap, uint8_t slot, const uint8_t *en
    int rc;

    off = boot_enc_key_off(fap, slot);
    BOOT_LOG_DBG("writing enc_key; fa_id=%d off=0x%lx (0x%lx)",
                 fap->fa_id, (unsigned long)off,
                 (unsigned long)fap->fa_off + off);
    rc = flash_area_write(fap, off, enckey, BOOT_ENC_KEY_SIZE);
    if (rc != 0) {
        return BOOT_EFLASH;