Skip to content

Commit 63142a3

Browse files
pillo79nashif
authored andcommitted
llext: (cosmetic) add allocated size to debug message
Adding this information allows easy cross-reference of the effects of memory optimization changes between subsequent commits. Signed-off-by: Luca Burelli <[email protected]>
1 parent 3a477c5 commit 63142a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subsys/llext/llext_load.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,8 +846,8 @@ int do_llext_load(struct llext_loader *ldr, struct llext *ext,
846846
ext->exp_tab.sym_cnt = 0;
847847
ext->exp_tab.syms = NULL;
848848
} else {
849-
LOG_DBG("loaded module, .text at %p, .rodata at %p", ext->mem[LLEXT_MEM_TEXT],
850-
ext->mem[LLEXT_MEM_RODATA]);
849+
LOG_DBG("Loaded llext: %zu bytes in heap, .text at %p, .rodata at %p",
850+
ext->alloc_size, ext->mem[LLEXT_MEM_TEXT], ext->mem[LLEXT_MEM_RODATA]);
851851
}
852852

853853
llext_finalize(ldr);

0 commit comments

Comments
 (0)