Skip to content

Commit

Permalink
zephyr: print version number before boot
Browse files Browse the repository at this point in the history
Signed-off-by: Toon Stegen <toon@toostsolutions.be>
  • Loading branch information
toonst committed Oct 14, 2024
1 parent 08a71d1 commit 4f734ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boot/zephyr/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,10 @@ int main(void)
rsp.br_image_off);
#endif

BOOT_LOG_INF("Image version: v%d.%d.%d", rsp.br_hdr->ih_ver.iv_major,
rsp.br_hdr->ih_ver.iv_minor,
rsp.br_hdr->ih_ver.iv_revision);

#if defined(MCUBOOT_DIRECT_XIP)
BOOT_LOG_INF("Jumping to the image slot");
#else
Expand Down

0 comments on commit 4f734ea

Please sign in to comment.