Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/include/sof/trace/trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ struct tr_ctx {
uint32_t level; /**< Default log level */
};

#if defined(UNIT_TEST) || defined(__ZEPHYR__)
#if defined(UNIT_TEST)
#define TRACE_CONTEXT_SECTION
#else
#define TRACE_CONTEXT_SECTION __section(".trace_ctx")
Expand Down
2 changes: 1 addition & 1 deletion src/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ struct sof_ipc_trace_filter_elem *trace_filter_fill(struct sof_ipc_trace_filter_
static int trace_filter_update_global(int32_t log_level, uint32_t uuid_id)
{
int cnt = 0;
#if !defined(__ZEPHYR__) && !defined(CONFIG_LIBRARY)
#if !defined(CONFIG_LIBRARY)
extern void *_trace_ctx_start;
extern void *_trace_ctx_end;
struct tr_ctx *ptr = (struct tr_ctx *)&_trace_ctx_start;
Expand Down