mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Rob Bradford
parent
3541cebbf1
commit
8e2973fe7c
@@ -75,7 +75,7 @@ unsafe impl ByteValued for VirtioPmemResp {}
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
enum Error {
|
||||
#[error("Bad guest memory addresses: {0}")]
|
||||
#[error("Bad guest memory addresses")]
|
||||
GuestMemory(#[source] GuestMemoryError),
|
||||
#[error("Unexpected write-only descriptor")]
|
||||
UnexpectedWriteOnlyDescriptor,
|
||||
@@ -87,7 +87,7 @@ enum Error {
|
||||
BufferLengthTooSmall,
|
||||
#[error("Invalid request")]
|
||||
InvalidRequest,
|
||||
#[error("Failed adding used index: {0}")]
|
||||
#[error("Failed adding used index")]
|
||||
QueueAddUsed(#[source] virtio_queue::Error),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user