vhost-user-backend: impl Debug for AddrMapping
It can be useful to debug the various address mappings sent to a vhost user device backend. impl Debug for both the postcopy and non-postcopy versions of AddrMapping. Signed-off-by: Tyler Fanelli <tfanelli@redhat.com>
This commit is contained in:
parent
51f8aa0100
commit
4f160320a8
1 changed files with 1 additions and 0 deletions
|
|
@ -82,6 +82,7 @@ impl error::Error for VhostUserHandlerError {}
|
|||
/// Result of vhost-user handler operations.
|
||||
pub type VhostUserHandlerResult<T> = std::result::Result<T, VhostUserHandlerError>;
|
||||
|
||||
#[derive(Debug)]
|
||||
struct AddrMapping {
|
||||
#[cfg(feature = "postcopy")]
|
||||
local_addr: u64,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue