vmm: Fix copy and paste error message

vm_remove_device was copied from vm_add_device but the error message
wasn't correctly updated.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2020-03-23 16:35:58 +00:00
parent 96d4f1e39e
commit 4c9d15d44c

View File

@ -405,7 +405,7 @@ impl Vmm {
fn vm_remove_device(&mut self, id: String) -> result::Result<(), VmError> {
if let Some(ref mut vm) = self.vm {
if let Err(e) = vm.remove_device(id) {
error!("Error when adding new device to the VM: {:?}", e);
error!("Error when removing new device to the VM: {:?}", e);
Err(e)
} else {
Ok(())