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
+2 -2
View File
@@ -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")]