From 946fd3fda2a26caffbded5eaca93c90b7bd4015a Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Wed, 8 May 2024 15:34:46 +0200 Subject: [PATCH] llext: (cosmetic) fix a misplaced space and re-use a variable Use an existing variable instead of re-calculating and fix swapped space and a paranthesis. Signed-off-by: Guennadi Liakhovetski --- subsys/llext/Kconfig | 2 +- subsys/llext/llext.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/subsys/llext/Kconfig b/subsys/llext/Kconfig index c0dc5e5e881..8984cb3ca39 100644 --- a/subsys/llext/Kconfig +++ b/subsys/llext/Kconfig @@ -27,7 +27,7 @@ config LLEXT_TYPE_ELF_OBJECT config LLEXT_TYPE_ELF_RELOCATABLE bool "Relocatable ELF file" help - Build and expect relocatable (partially linked )files as the + Build and expect relocatable (partially linked) files as the binary object type for the llext subsystem. These object files are generated by the linker by combining multiple object files into a single one. diff --git a/subsys/llext/llext.c b/subsys/llext/llext.c index 35afa99077c..de90670916a 100644 --- a/subsys/llext/llext.c +++ b/subsys/llext/llext.c @@ -165,8 +165,7 @@ static int llext_find_tables(struct llext_loader *ldr) } LOG_DBG("section %d at %zx: name %d, type %d, flags %zx, addr %zx, size %zd", - i, - (size_t)ldr->hdr.e_shoff + i * ldr->hdr.e_shentsize, + i, pos, shdr.sh_name, shdr.sh_type, (size_t)shdr.sh_flags,