mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: 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:
committed by
Rob Bradford
parent
5711f31995
commit
1b91aa8ef3
@@ -45,7 +45,7 @@ pub enum Error {
|
||||
BadWriteOffset(u64),
|
||||
#[error("GPIO interrupt disabled by guest driver")]
|
||||
GpioInterruptDisabled,
|
||||
#[error("Could not trigger GPIO interrupt: {0}")]
|
||||
#[error("Could not trigger GPIO interrupt")]
|
||||
GpioInterruptFailure(#[source] io::Error),
|
||||
#[error("Invalid GPIO Input key triggered: {0}")]
|
||||
GpioTriggerKeyFailure(u32),
|
||||
|
||||
@@ -45,7 +45,7 @@ pub const NANOS_PER_SECOND: u64 = 1_000_000_000;
|
||||
pub enum Error {
|
||||
#[error("Bad Write Offset: {0}")]
|
||||
BadWriteOffset(u64),
|
||||
#[error("Failed to trigger interrupt: {0}")]
|
||||
#[error("Failed to trigger interrupt")]
|
||||
InterruptFailure(#[source] io::Error),
|
||||
}
|
||||
|
||||
|
||||
@@ -53,11 +53,11 @@ pub enum Error {
|
||||
BadWriteOffset(u64),
|
||||
#[error("pl011: DMA not implemented")]
|
||||
DmaNotImplemented,
|
||||
#[error("Failed to trigger interrupt: {0}")]
|
||||
#[error("Failed to trigger interrupt")]
|
||||
InterruptFailure(#[source] io::Error),
|
||||
#[error("Failed to write: {0}")]
|
||||
#[error("Failed to write")]
|
||||
WriteAllFailure(#[source] io::Error),
|
||||
#[error("Failed to flush: {0}")]
|
||||
#[error("Failed to flush")]
|
||||
FlushFailure(#[source] io::Error),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user