virtio-devices: vhost_user: net: Fix wrong error message

Due to a previous copy and paste error.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2021-08-06 14:53:13 +02:00 committed by Bo Chen
parent 5e74848ab4
commit 204be8611c

View File

@ -498,7 +498,7 @@ impl Migratable for Net {
.start_dirty_log(last_ram_addr) .start_dirty_log(last_ram_addr)
.map_err(|e| { .map_err(|e| {
MigratableError::MigrateStart(anyhow!( MigratableError::MigrateStart(anyhow!(
"Error starting migration for vhost-user-blk backend: {:?}", "Error starting migration for vhost-user-net backend: {:?}",
e e
)) ))
}) })
@ -512,7 +512,7 @@ impl Migratable for Net {
fn stop_dirty_log(&mut self) -> std::result::Result<(), MigratableError> { fn stop_dirty_log(&mut self) -> std::result::Result<(), MigratableError> {
self.vu.lock().unwrap().stop_dirty_log().map_err(|e| { self.vu.lock().unwrap().stop_dirty_log().map_err(|e| {
MigratableError::MigrateStop(anyhow!( MigratableError::MigrateStop(anyhow!(
"Error stopping migration for vhost-user-blk backend: {:?}", "Error stopping migration for vhost-user-net backend: {:?}",
e e
)) ))
}) })
@ -527,7 +527,7 @@ impl Migratable for Net {
.dirty_log(last_ram_addr) .dirty_log(last_ram_addr)
.map_err(|e| { .map_err(|e| {
MigratableError::MigrateDirtyRanges(anyhow!( MigratableError::MigrateDirtyRanges(anyhow!(
"Error retrieving dirty ranges from vhost-user-blk backend: {:?}", "Error retrieving dirty ranges from vhost-user-net backend: {:?}",
e e
)) ))
}) })