Skip to content

Commit 93874d2

Browse files
committed
loader: Export the correct sketch log symbols.
The created sketch log struct depends on the config: CONFIG_LOG_MODE_IMMEDIATE: creates a const log module structure (log_const_sketch). CONFIG_LOG_MODE_DEFERRED: creates log_dynamic_sketch struct. CONFIG_LOG_RUNTIME_FILTERING (implied by CONFIG_SHELL): creates log_dynamic_sketch struct. CONFIG_LOG_MODE_IMMEDIATE + CONFIG_SHELL: creates both. Signed-off-by: iabdalkader <[email protected]>
1 parent 446466c commit 93874d2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

loader/llext_exports.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,12 @@ EXPORT_SYMBOL(usb_disable);
8383
#endif
8484

8585
EXPORT_SYMBOL(z_log_msg_runtime_vcreate);
86-
86+
#if defined(CONFIG_LOG_MODE_IMMEDIATE)
87+
FORCE_EXPORT_SYM(log_const_sketch)
88+
#endif
89+
#if defined(CONFIG_LOG_MODE_DEFERRED) || defined(CONFIG_LOG_RUNTIME_FILTERING)
8790
FORCE_EXPORT_SYM(log_dynamic_sketch)
91+
#endif
8892

8993
#if defined(CONFIG_NETWORKING)
9094
FORCE_EXPORT_SYM(net_if_foreach);

0 commit comments

Comments
 (0)