diff --git a/libafl/src/bolts/llmp.rs b/libafl/src/bolts/llmp.rs index 5bbdcc870b..5205b1936f 100644 --- a/libafl/src/bolts/llmp.rs +++ b/libafl/src/bolts/llmp.rs @@ -856,7 +856,7 @@ where } } else if (*page).current_msg_id != (*last_msg).message_id { /* Oops, wrong usage! */ - panic!("BUG: The current message never got commited using send! (page->current_msg_id {:?}, last_msg->message_id: {})", ptr::addr_of!((*page).current_msg_id), *ptr::addr_of!((*last_msg).message_id)); + panic!("BUG: The current message never got commited using send! (page->current_msg_id {:?}, last_msg->message_id: {})", ptr::addr_of!((*page).current_msg_id), (*last_msg).message_id); } else { buf_len_padded = complete_msg_size - size_of::(); /* DBG("XXX ret %p id %u buf_len_padded %lu complete_msg_size %lu\n", ret, ret->message_id, buf_len_padded, @@ -914,10 +914,7 @@ where panic!("Message sent twice!"); } if (*msg).tag == LLMP_TAG_UNSET { - panic!( - "No tag set on message with id {}", - *ptr::addr_of!((*msg).message_id) - ); + panic!("No tag set on message with id {}", (*msg).message_id); } let page = self.out_maps.last_mut().unwrap().page_mut(); if msg.is_null() || !llmp_msg_in_page(page, msg) { @@ -1211,7 +1208,7 @@ where LLMP_TAG_UNSET => panic!("BUG: Read unallocated msg"), LLMP_TAG_EXITING => { // The other side is done. - assert_eq!(*ptr::addr_of!((*msg).buf_len), 0); + assert_eq!((*msg).buf_len, 0); return Err(Error::ShuttingDown); } LLMP_TAG_END_OF_PAGE => { @@ -1221,8 +1218,8 @@ where if (*msg).buf_len < size_of::() as u64 { panic!( "Illegal message length for EOP (is {}/{}, expected {})", - *ptr::addr_of!((*msg).buf_len), - *ptr::addr_of!((*msg).buf_len_padded), + (*msg).buf_len, + (*msg).buf_len_padded, size_of::() ); }