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:
Tyler Fanelli 2024-10-01 22:49:10 -04:00 committed by Stefano Garzarella
parent 51f8aa0100
commit 4f160320a8

View file

@ -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,