virtio-devices: block: Use Display when logging Error

block::Error implements Display via thiserror, so the user facing
log lines do not need the Debug formatter.

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
Anatol Belski
2026-05-07 23:11:01 +02:00
committed by Rob Bradford
parent 14dfd78f04
commit 26ed2a98bc

View File

@@ -391,12 +391,12 @@ impl BlockEpollHandler {
// Surface the failure so the worker exits and spawn_virtio_thread
// marks the device as NEEDS_RESET.
return Err(EpollHelperError::HandleEvent(anyhow!(
"Failed to process queue (submit): {e:?}"
"Failed to process queue (submit): {e}"
)));
}
Err(e) => {
// Per-request errors are logged but non-device fatal.
warn!("Failed to process queue (submit): {e:?}");
warn!("Failed to process queue (submit): {e}");
}
}