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:
Rob Bradford 2020-04-09 13:10:32 +01:00 committed by Sebastien Boeuf
parent a216c2ebd3
commit 56207a0328

View File

@ -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
);
} }
} }