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 <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt 2021-11-25 11:00:22 +00:00
parent 3e3e3a0253
commit 6007322daa

View File

@ -746,7 +746,7 @@ async fn vfio_device_handler(device: &Device, sandbox: &Arc<Mutex<Sandbox>>) ->
let dev_update = if vfio_in_guest { let dev_update = if vfio_in_guest {
// If there are any devices at all, logic above ensures that group is not None // 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?; let vm_path = get_vfio_device_name(sandbox, group).await?;