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
+3
-3
@@ -27,16 +27,16 @@ const NUM_DEVICE_IDS: usize = 32;
|
||||
#[derive(Error, Debug)]
|
||||
pub enum PciRootError {
|
||||
/// Could not allocate device address space for the device.
|
||||
#[error("Could not allocate device address space for the device: {0}")]
|
||||
#[error("Could not allocate device address space for the device")]
|
||||
AllocateDeviceAddrs(#[source] PciDeviceError),
|
||||
/// Could not allocate an IRQ number.
|
||||
#[error("Could not allocate an IRQ number")]
|
||||
AllocateIrq,
|
||||
/// Could not add a device to the port io bus.
|
||||
#[error("Could not add a device to the port io bus: {0}")]
|
||||
#[error("Could not add a device to the port io bus")]
|
||||
PioInsert(#[source] vm_device::BusError),
|
||||
/// Could not add a device to the mmio bus.
|
||||
#[error("Could not add a device to the mmio bus: {0}")]
|
||||
#[error("Could not add a device to the mmio bus")]
|
||||
MmioInsert(#[source] vm_device::BusError),
|
||||
/// Could not find an available device slot on the PCI bus.
|
||||
#[error("Could not find an available device slot on the PCI bus")]
|
||||
|
||||
Reference in New Issue
Block a user