From b0a2f0c4fec5358063e6323bf9f9ee001341c473 Mon Sep 17 00:00:00 2001 From: xoviat Date: Sat, 17 Jun 2023 11:02:31 -0500 Subject: [PATCH] stm32/wpan: debug remove node --- embassy-stm32-wpan/src/unsafe_linked_list.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/embassy-stm32-wpan/src/unsafe_linked_list.rs b/embassy-stm32-wpan/src/unsafe_linked_list.rs index 5b210aac4..a2d2840f0 100644 --- a/embassy-stm32-wpan/src/unsafe_linked_list.rs +++ b/embassy-stm32-wpan/src/unsafe_linked_list.rs @@ -117,7 +117,10 @@ impl LinkedListNode { /// Remove `node` from the linked list pub unsafe fn remove_node(mut p_node: *mut LinkedListNode) { interrupt::free(|_| { + trace!("remove node: {:x}", p_node); let node = ptr::read_volatile(p_node); + trace!("remove node: prev/next {:x}/{:x}", node.prev, node.next); + if node.next != node.prev { let mut node_next = ptr::read_volatile(node.next); let mut node_prev = ptr::read_volatile(node.prev);