From 98ba3815981bf788c175857731e7be0183b9b9a2 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Fri, 20 Mar 2026 17:12:44 +0100 Subject: [PATCH 1/2] debug-stream: update to the latest Zephyr PR version The latest version of https://github.com/zephyrproject-rtos/zephyr/pull/103449 has changed the name of set_exception_dump_hook() to arch_exception_set_dump_hook(). The PR is now merged, so we should update the function name. Signed-off-by: Guennadi Liakhovetski --- src/debug/debug_stream/debug_stream_text_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug/debug_stream/debug_stream_text_msg.c b/src/debug/debug_stream/debug_stream_text_msg.c index 4ee71322a3e0..358e069b15c6 100644 --- a/src/debug/debug_stream/debug_stream_text_msg.c +++ b/src/debug/debug_stream/debug_stream_text_msg.c @@ -130,7 +130,7 @@ 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); + arch_exception_set_dump_hook(ds_exception_dump, ds_exception_drain); LOG_INF("exception_dump_hook set"); return 0; } From 9e8ce6a3bb7289c9416fdc0c5c82b6bfbf2bee49 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Fri, 20 Mar 2026 17:16:59 +0100 Subject: [PATCH 2/2] debug-slot: (cosmetic) reduce verbosity Reduce logging verbosity and improve line formatting. Signed-off-by: Guennadi Liakhovetski --- src/debug/debug_stream/debug_stream_slot.c | 10 ++++------ src/debug/debug_stream/debug_stream_text_msg.c | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/debug/debug_stream/debug_stream_slot.c b/src/debug/debug_stream/debug_stream_slot.c index a55c1c1e116d..d75c8248a45c 100644 --- a/src/debug/debug_stream/debug_stream_slot.c +++ b/src/debug/debug_stream/debug_stream_slot.c @@ -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; } diff --git a/src/debug/debug_stream/debug_stream_text_msg.c b/src/debug/debug_stream/debug_stream_text_msg.c index 358e069b15c6..8bb3925a1550 100644 --- a/src/debug/debug_stream/debug_stream_text_msg.c +++ b/src/debug/debug_stream/debug_stream_text_msg.c @@ -131,7 +131,7 @@ static void ds_exception_dump(const char *format, va_list args) static int init_exception_dump_hook(void) { arch_exception_set_dump_hook(ds_exception_dump, ds_exception_drain); - LOG_INF("exception_dump_hook set"); + LOG_DBG("exception_dump_hook set"); return 0; }