From 26ed2a98bcb6f02ed36132f7745bfa44c7f252c5 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Thu, 7 May 2026 23:11:01 +0200 Subject: [PATCH] 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 --- virtio-devices/src/block.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virtio-devices/src/block.rs b/virtio-devices/src/block.rs index d1ade5283..a08f7ed4c 100644 --- a/virtio-devices/src/block.rs +++ b/virtio-devices/src/block.rs @@ -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}"); } }