From 546b5b5782d2dadb2b9588abc752cae2a9b1350c Mon Sep 17 00:00:00 2001 From: Jamie McCrae Date: Fri, 10 Jan 2025 11:42:38 +0000 Subject: [PATCH] boot: bootutil: loader: Fix some comments Fixes some comments which had typos or were not formatted correctly Signed-off-by: Jamie McCrae --- boot/bootutil/src/loader.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/boot/bootutil/src/loader.c b/boot/bootutil/src/loader.c index 63ada9349..028b6787f 100644 --- a/boot/bootutil/src/loader.c +++ b/boot/bootutil/src/loader.c @@ -783,8 +783,9 @@ boot_image_check(struct boot_loader_state *state, struct image_header *hdr, (void)bs; (void)rc; -/* In the case of ram loading the image has already been decrypted as it is - * decrypted when copied in ram */ + /* In the case of ram loading the image has already been decrypted as it is + * decrypted when copied in ram + */ #if defined(MCUBOOT_ENC_IMAGES) && !defined(MCUBOOT_RAM_LOAD) if (MUST_DECRYPT(fap, BOOT_CURR_IMG(state), hdr)) { rc = boot_enc_load(BOOT_CURR_ENC(state), 1, hdr, fap, bs); @@ -1317,7 +1318,7 @@ boot_copy_region(struct boot_loader_state *state, #ifdef MCUBOOT_ENC_IMAGES /* If only copy, then does not matter if header indicates need for - * encryptio/decryptio, we just copy data. */ + * encryption/decryption, we just copy data. */ if (!only_copy && IS_ENCRYPTED(hdr)) { #if defined(MCUBOOT_SWAP_USING_OFFSET) uint32_t abs_off = off - sector_off + bytes_copied;