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 <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2024-05-08 15:34:46 +02:00 committed by Maureen Helm
commit 946fd3fda2
2 changed files with 2 additions and 3 deletions

View file

@ -27,7 +27,7 @@ config LLEXT_TYPE_ELF_OBJECT
config LLEXT_TYPE_ELF_RELOCATABLE config LLEXT_TYPE_ELF_RELOCATABLE
bool "Relocatable ELF file" bool "Relocatable ELF file"
help 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 binary object type for the llext subsystem. These object files
are generated by the linker by combining multiple object files are generated by the linker by combining multiple object files
into a single one. into a single one.

View file

@ -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", LOG_DBG("section %d at %zx: name %d, type %d, flags %zx, addr %zx, size %zd",
i, i, pos,
(size_t)ldr->hdr.e_shoff + i * ldr->hdr.e_shentsize,
shdr.sh_name, shdr.sh_name,
shdr.sh_type, shdr.sh_type,
(size_t)shdr.sh_flags, (size_t)shdr.sh_flags,