mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 04:26:38 +00:00
linux: disambiguate error context messages
Error context messages should be unique to easily identify where they come from. BUG=None TEST=cargo build Change-Id: I1c1deb051a6c77f624c60c581ee680dbad1ae997 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3320914 Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
This commit is contained in:
parent
a184e31757
commit
00065869cf
1 changed files with 2 additions and 2 deletions
|
@ -605,7 +605,7 @@ fn create_tap_net_device(cfg: &Config, tap_fd: RawDescriptor) -> DeviceResult {
|
|||
}
|
||||
let features = virtio::base_features(cfg.protected_vm);
|
||||
let dev =
|
||||
virtio::Net::from(features, tap, vq_pairs).context("failed to set up virtio networking")?;
|
||||
virtio::Net::from(features, tap, vq_pairs).context("failed to create tap net device")?;
|
||||
|
||||
Ok(VirtioDeviceStub {
|
||||
dev: Box::new(dev),
|
||||
|
@ -639,7 +639,7 @@ fn create_net_device(
|
|||
Box::new(dev) as Box<dyn VirtioDevice>
|
||||
} else {
|
||||
let dev = virtio::Net::<Tap>::new(features, host_ip, netmask, mac_address, vq_pairs)
|
||||
.context("failed to set up virtio networking")?;
|
||||
.context("failed to create virtio network device")?;
|
||||
Box::new(dev) as Box<dyn VirtioDevice>
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue