From 40d8f9ee51e6139baf765b4da262e8134fa34d57 Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Thu, 25 Jun 2026 13:34:40 +0200 Subject: [PATCH] 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 --- pci/src/device.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pci/src/device.rs b/pci/src/device.rs index f9676c1b9..670b3ba9e 100644 --- a/pci/src/device.rs +++ b/pci/src/device.rs @@ -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")]