Skip to content
Open
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
10 changes: 4 additions & 6 deletions src/debug/debug_stream/debug_stream_slot.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,22 +147,20 @@ static int debug_stream_slot_init(void)
for (i = 0; i < CONFIG_MP_MAX_NUM_CPUS; i++) {
hdr->section_desc[i].core_id = i;
hdr->section_desc[i].buf_words =
(section_size - offsetof(struct debug_stream_circular_buf, data[0]))/
(section_size - offsetof(struct debug_stream_circular_buf, data[0])) /
sizeof(uint32_t);
hdr->section_desc[i].offset = offset;
LOG_INF("sections %u, size %u, offset %u",
i, section_size, offset);
LOG_DBG("sections %u, size %u, offset %u", i, section_size, offset);
offset += section_size;
}
for (i = 0; i < CONFIG_MP_MAX_NUM_CPUS; i++) {
struct debug_stream_section_descriptor desc = { 0 };
struct debug_stream_circular_buf *buf =
debug_stream_get_circular_buffer(&desc, i);
struct debug_stream_circular_buf *buf = debug_stream_get_circular_buffer(&desc, i);

buf->next_seqno = 0;
buf->w_ptr = 0;
}
LOG_INF("Debug stream slot initialized");
LOG_DBG("Debug stream slot initialized");

return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions src/debug/debug_stream/debug_stream_text_msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ static void ds_exception_dump(const char *format, va_list args)

static int init_exception_dump_hook(void)
{
set_exception_dump_hook(ds_exception_dump, ds_exception_drain);
LOG_INF("exception_dump_hook set");
arch_exception_set_dump_hook(ds_exception_dump, ds_exception_drain);
LOG_DBG("exception_dump_hook set");
return 0;
}

Expand Down
Loading