netlink-request: print out packet that was oversized for debugging

pull/186/head
Jake McGinty 2022-01-11 00:25:19 -06:00
parent a21928c30c
commit 9fbc0c5f1b
1 changed files with 3 additions and 2 deletions

View File

@ -87,9 +87,10 @@ mod linux {
return Err(io::Error::new(
io::ErrorKind::InvalidInput,
format!(
"Serialized netlink packet ({} bytes) larger than maximum size {}",
"Serialized netlink packet ({} bytes) larger than maximum size {}: {:?}",
req.buffer_len(),
MAX_NETLINK_BUFFER_LENGTH
MAX_NETLINK_BUFFER_LENGTH,
req
),
));
}