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
+7 -7
View File
@@ -24,19 +24,19 @@ pub struct EpollHelper {
#[derive(Error, Debug)]
pub enum EpollHelperError {
#[error("Failed to create Fd: {0}")]
#[error("Failed to create Fd")]
CreateFd(#[source] std::io::Error),
#[error("Failed to epoll_ctl: {0}")]
#[error("Failed to epoll_ctl")]
Ctl(#[source] std::io::Error),
#[error("IO error: {0}")]
#[error("IO error")]
IoError(#[source] std::io::Error),
#[error("Failed to epoll_wait: {0}")]
#[error("Failed to epoll_wait")]
Wait(#[source] std::io::Error),
#[error("Failed to get virtio-queue index: {0}")]
#[error("Failed to get virtio-queue index")]
QueueRingIndex(#[source] virtio_queue::Error),
#[error("Failed to handle virtio device events: {0}")]
#[error("Failed to handle virtio device events")]
HandleEvent(#[source] anyhow::Error),
#[error("Failed to handle timeout: {0}")]
#[error("Failed to handle timeout")]
HandleTimeout(#[source] anyhow::Error),
}