mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
pci: Print out details of the BAR moving upon error
In particular include the old and new bases as well as the length. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
a216c2ebd3
commit
56207a0328
@ -239,7 +239,10 @@ impl PciConfigIo {
|
|||||||
device.deref_mut(),
|
device.deref_mut(),
|
||||||
params.region_type,
|
params.region_type,
|
||||||
) {
|
) {
|
||||||
error!("Failed moving device BAR: {}", e);
|
error!(
|
||||||
|
"Failed moving device BAR: {}: 0x{:x}->0x{:x}(0x{:x})",
|
||||||
|
e, params.old_base, params.new_base, params.len
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -355,7 +358,10 @@ impl PciConfigMmio {
|
|||||||
device.deref_mut(),
|
device.deref_mut(),
|
||||||
params.region_type,
|
params.region_type,
|
||||||
) {
|
) {
|
||||||
error!("Failed moving device BAR: {}", e);
|
error!(
|
||||||
|
"Failed moving device BAR: {}: 0x{:x}->0x{:x}(0x{:x})",
|
||||||
|
e, params.old_base, params.new_base, params.len
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user