Skip to content

Commit 425e22b

Browse files
rbrscolemande-nordic
authored andcommitted
boot/zephyr: fix compilation errors in logging.
Both static `boot_image_validate_once()` functions in the Zephyr application have a flash area parameter named `fa_p`, not `fap_p`. This presumably went unnoticed because these functions are only compiled when `MCUBOOT_VALIDATE_PRIMARY_SLOT_ONCE` is defined. Signed-off-by: Samuel Coleman <samuel.coleman@rbr-global.com>
1 parent ec26273 commit 425e22b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

boot/zephyr/firmware_loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ boot_image_validate_once(const struct flash_area *fa_p,
7373
int rc;
7474
FIH_DECLARE(fih_rc, FIH_FAILURE);
7575

76-
BOOT_LOG_DBG("boot_image_validate_once: flash area %p", fap_p);
76+
BOOT_LOG_DBG("boot_image_validate_once: flash area %p", fa_p);
7777

7878
memset(&state, 0, sizeof(struct boot_swap_state));
7979
rc = boot_read_swap_state(fa_p, &state);

boot/zephyr/single_loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ boot_image_validate_once(const struct flash_area *fa_p,
8585
int rc;
8686
FIH_DECLARE(fih_rc, FIH_FAILURE);
8787

88-
BOOT_LOG_DBG("boot_image_validate_once: flash area %p", fap_p);
88+
BOOT_LOG_DBG("boot_image_validate_once: flash area %p", fa_p);
8989

9090
memset(&state, 0, sizeof(struct boot_swap_state));
9191
rc = boot_read_swap_state(fa_p, &state);

0 commit comments

Comments
 (0)