netlink-request: print out packet that was oversized for debugging
parent
a21928c30c
commit
9fbc0c5f1b
|
@ -87,9 +87,10 @@ mod linux {
|
||||||
return Err(io::Error::new(
|
return Err(io::Error::new(
|
||||||
io::ErrorKind::InvalidInput,
|
io::ErrorKind::InvalidInput,
|
||||||
format!(
|
format!(
|
||||||
"Serialized netlink packet ({} bytes) larger than maximum size {}",
|
"Serialized netlink packet ({} bytes) larger than maximum size {}: {:?}",
|
||||||
req.buffer_len(),
|
req.buffer_len(),
|
||||||
MAX_NETLINK_BUFFER_LENGTH
|
MAX_NETLINK_BUFFER_LENGTH,
|
||||||
|
req
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue