misc: virtio-devices: 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:22 +02:00
committed by Rob Bradford
parent 3541cebbf1
commit 8e2973fe7c
16 changed files with 142 additions and 142 deletions
+4 -4
View File
@@ -292,7 +292,7 @@ unsafe impl ByteValued for VirtioIommuFault {}
#[derive(Error, Debug)]
enum Error {
#[error("Guest gave us bad memory addresses: {0}")]
#[error("Guest gave us bad memory addresses")]
GuestMemory(#[source] GuestMemoryError),
#[error("Guest gave us a write only descriptor that protocol says to read from")]
UnexpectedWriteOnlyDescriptor,
@@ -322,11 +322,11 @@ enum Error {
InvalidUnmapRequestMissingDomain,
#[error("Guest sent us invalid PROBE request")]
InvalidProbeRequest,
#[error("Failed to performing external mapping: {0}")]
#[error("Failed to performing external mapping")]
ExternalMapping(#[source] io::Error),
#[error("Failed to performing external unmapping: {0}")]
#[error("Failed to performing external unmapping")]
ExternalUnmapping(#[source] io::Error),
#[error("Failed adding used index: {0}")]
#[error("Failed adding used index")]
QueueAddUsed(#[source] virtio_queue::Error),
}