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
|
/// Remove `node` from the linked list
|
||||||
pub unsafe fn remove_node(mut p_node: *mut LinkedListNode) {
|
pub unsafe fn remove_node(mut p_node: *mut LinkedListNode) {
|
||||||
interrupt::free(|_| {
|
interrupt::free(|_| {
|
||||||
|
trace!("remove node: {:x}", p_node);
|
||||||
let node = ptr::read_volatile(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 {
|
if node.next != node.prev {
|
||||||
let mut node_next = ptr::read_volatile(node.next);
|
let mut node_next = ptr::read_volatile(node.next);
|
||||||
let mut node_prev = ptr::read_volatile(node.prev);
|
let mut node_prev = ptr::read_volatile(node.prev);
|
||||||
|
Loading…
Reference in New Issue
Block a user