mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-10-31 09:26:52 +00:00 
			
		
		
		
	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:
		| @@ -746,7 +746,7 @@ async fn vfio_device_handler(device: &Device, sandbox: &Arc<Mutex<Sandbox>>) -> | ||||
|  | ||||
|     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?; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user