pci: streamline error messages

In [0] we agreed on the current format.

[0] https://github.com/cloud-hypervisor/cloud-hypervisor/pull/7066

On-behalf-of: SAP philipp.schuster@sap.com
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
This commit is contained in:
Philipp Schuster
2026-06-25 13:34:40 +02:00
committed by Bo Chen
parent fdc076d22f
commit 40d8f9ee51

View File

@@ -22,10 +22,10 @@ pub enum Error {
#[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")]
#[error("Allocating space for an IO BAR of size {0} failed")]
IoAllocationFailed(u64),
/// Registering an IO BAR failed.
#[error("Registering an IO BAR failed")]
#[error("Registering an IO BAR at address {0:#x} failed")]
IoRegistrationFailed(u64, #[source] configuration::Error),
/// Expected resource not found.
#[error("Expected resource not found")]