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:
Philipp Schuster
2025-05-21 12:31:59 +02:00
committed by Rob Bradford
parent 192b19c060
commit a3692144f0
6 changed files with 25 additions and 25 deletions
+6 -6
View File
@@ -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),
}