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
+2
-2
@@ -18,13 +18,13 @@ use crate::PciBarConfiguration;
|
||||
#[derive(Error, Debug)]
|
||||
pub enum Error {
|
||||
/// Setup of the device capabilities failed.
|
||||
#[error("Setup of the device capabilities failed: {0}")]
|
||||
#[error("Setup of the device capabilities failed")]
|
||||
CapabilitiesSetup(#[source] configuration::Error),
|
||||
/// Allocating space for an IO BAR failed.
|
||||
#[error("Allocating space for an IO BAR failed")]
|
||||
IoAllocationFailed(u64),
|
||||
/// Registering an IO BAR failed.
|
||||
#[error("Registering an IO BAR failed: {0}")]
|
||||
#[error("Registering an IO BAR failed")]
|
||||
IoRegistrationFailed(u64, #[source] configuration::Error),
|
||||
/// Expected resource not found.
|
||||
#[error("Expected resource not found")]
|
||||
|
||||
Reference in New Issue
Block a user