mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: pci: streamline error Display::fmt()
The changes were mostly automatically applied using the Python script mentioned in the first commit of this series. Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
committed by
Rob Bradford
parent
192b19c060
commit
a3692144f0
@@ -40,17 +40,17 @@ pub struct VfioUserPciDevice {
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum VfioUserPciDeviceError {
|
||||
#[error("Client error: {0}")]
|
||||
#[error("Client error")]
|
||||
Client(#[source] VfioUserError),
|
||||
#[error("Failed to map VFIO PCI region into guest: {0}")]
|
||||
#[error("Failed to map VFIO PCI region into guest")]
|
||||
MapRegionGuest(#[source] HypervisorVmError),
|
||||
#[error("Failed to DMA map: {0}")]
|
||||
#[error("Failed to DMA map")]
|
||||
DmaMap(#[source] VfioUserError),
|
||||
#[error("Failed to DMA unmap: {0}")]
|
||||
#[error("Failed to DMA unmap")]
|
||||
DmaUnmap(#[source] VfioUserError),
|
||||
#[error("Failed to initialize legacy interrupts: {0}")]
|
||||
#[error("Failed to initialize legacy interrupts")]
|
||||
InitializeLegacyInterrupts(#[source] VfioPciError),
|
||||
#[error("Failed to create VfioCommon: {0}")]
|
||||
#[error("Failed to create VfioCommon")]
|
||||
CreateVfioCommon(#[source] VfioPciError),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user