src/device/pci_rom.c: Show device IDs on oprom failure
On a device/option-rom ID mismatch, the option rom's IDs would get shown twice instead of showing the actual device's IDs. This was very confusing because the error showed matching IDs. BUG=None TEST=Shows mismatched IDs when option rom doesn't match the hardware Change-Id: I5a06d6a7319aa653c8a5e32ec3c5afb651d83140 Signed-off-by: Martin Roth <martinroth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/coreboot/+/2013180 Reviewed-by: Raul E Rangel <rrangel@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39586 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
bfb0f755b9
commit
b6e2afb1ff
|
@ -98,7 +98,7 @@ struct rom_header *pci_rom_probe(struct device *dev)
|
|||
|| dev->device != rom_data->device)
|
||||
&& (vendev == mapped_vendev)) {
|
||||
printk(BIOS_ERR, "ID mismatch: vendor ID %04x, "
|
||||
"device ID %04x\n", rom_data->vendor, rom_data->device);
|
||||
"device ID %04x\n", dev->vendor, dev->device);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue