From 6007322daadc917ae1de3f3ce287f68293ea5074 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Thu, 25 Nov 2021 11:00:22 +0000 Subject: [PATCH] agent: Fixed invalid error message Remove the format specifier in the `"failed to get VFIO group"` error returned by `vfio_device_handler()`. Signed-off-by: James O. D. Hunt --- src/agent/src/device.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/src/device.rs b/src/agent/src/device.rs index 7c73dd2ca..629cc3fc2 100644 --- a/src/agent/src/device.rs +++ b/src/agent/src/device.rs @@ -746,7 +746,7 @@ async fn vfio_device_handler(device: &Device, sandbox: &Arc>) -> let dev_update = if vfio_in_guest { // If there are any devices at all, logic above ensures that group is not None - let group = group.ok_or_else(|| anyhow!("failed to get VFIO group: {:?}"))?; + let group = group.ok_or_else(|| anyhow!("failed to get VFIO group"))?; let vm_path = get_vfio_device_name(sandbox, group).await?;