Skip to content

Commit 946fd3f

Browse files
lyakhMaureenHelm
authored andcommitted
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 <[email protected]>
1 parent ebde539 commit 946fd3f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

subsys/llext/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ config LLEXT_TYPE_ELF_OBJECT
2727
config LLEXT_TYPE_ELF_RELOCATABLE
2828
bool "Relocatable ELF file"
2929
help
30-
Build and expect relocatable (partially linked )files as the
30+
Build and expect relocatable (partially linked) files as the
3131
binary object type for the llext subsystem. These object files
3232
are generated by the linker by combining multiple object files
3333
into a single one.

subsys/llext/llext.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,7 @@ static int llext_find_tables(struct llext_loader *ldr)
165165
}
166166

167167
LOG_DBG("section %d at %zx: name %d, type %d, flags %zx, addr %zx, size %zd",
168-
i,
169-
(size_t)ldr->hdr.e_shoff + i * ldr->hdr.e_shentsize,
168+
i, pos,
170169
shdr.sh_name,
171170
shdr.sh_type,
172171
(size_t)shdr.sh_flags,

0 commit comments

Comments
 (0)