virtio-devices: show the failed block request to help debugging

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu 2022-11-14 12:32:37 +00:00 committed by Rob Bradford
parent 345e65c9c2
commit b07d471d4f

View File

@ -219,7 +219,8 @@ impl BlockEpollHandler {
(VIRTIO_BLK_S_OK, result as u32)
} else {
error!(
"Request failed: {:?}",
"Request failed: {:x?} {:?}",
request,
io::Error::from_raw_os_error(-result)
);
return Err(Error::AsyncRequestFailure);