mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
stm32/wpan: debug remove node
This commit is contained in:
parent
4c9b7befaa
commit
b0a2f0c4fe
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user