This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 864a6684331ec8529148033619d9f841f229004c Author: huojianchao <[email protected]> AuthorDate: Fri Nov 20 11:43:14 2026 +0800 libs/libc/backtrace: fix nxstyle errors of the dynamic records Add the blank lines after the declarations that nxstyle asks for in backtrace_expand() and backtrace_remove(). No functional change. Signed-off-by: huojianchao <[email protected]> --- libs/libc/misc/lib_backtrace.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/libc/misc/lib_backtrace.c b/libs/libc/misc/lib_backtrace.c index 1dcc444701b..8c84d274145 100644 --- a/libs/libc/misc/lib_backtrace.c +++ b/libs/libc/misc/lib_backtrace.c @@ -157,6 +157,7 @@ static void backtrace_rehash(FAR struct backtrace_pool_s *bp, { uint32_t slot = backtrace_hash(entry->stack, entry->depth); FAR struct backtrace_entry_s *next = entry->next; + slot = slot % (capacity * 2); entry->next = bucket[slot]; bucket[slot] = entry; @@ -412,6 +413,7 @@ void backtrace_remove(FAR void *index) /* Remove the backtrace record from the linked list */ FAR struct backtrace_entry_s *prev = bp->bucket[slot]; + while (prev) { if (prev->next == entry)
