mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
This patch cleans up a little whitespace and makes the ID mismatch error more
verbose in pci_rom.c. Suggested by Pattrick on the list. Trivial. Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Myles Watson <mylesgw@gmail.com> git-svn-id: svn://coreboot.org/repository/coreboot-v3@1072 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
85f94c96c1
commit
695d74985e
1 changed files with 9 additions and 8 deletions
|
@ -103,18 +103,19 @@ struct rom_header *pci_rom_probe(struct device *dev)
|
||||||
sum += *(rom_bytes + i);
|
sum += *(rom_bytes + i);
|
||||||
|
|
||||||
if (sum != 0)
|
if (sum != 0)
|
||||||
printk(BIOS_ALERT, "Incorrent Expansion ROM checksum (%02x != 0)\n", sum);
|
printk(BIOS_ALERT, "Expansion ROM checksum %02x != 0!\n", sum);
|
||||||
|
|
||||||
rom_data = (struct pci_data *)((unsigned char *)rom_header +
|
rom_data = (struct pci_data *)((unsigned char *)rom_header +
|
||||||
le32_to_cpu(rom_header->data));
|
le32_to_cpu(rom_header->data));
|
||||||
|
|
||||||
printk(BIOS_SPEW, "PCI ROM Image, @%p, Vendor %04x, Device %04x,\n",
|
printk(BIOS_SPEW, "PCI ROM Image, @%p, Vendor %04x, Device %04x,\n",
|
||||||
&rom_data->vendor,
|
&rom_data->vendor, rom_data->vendor, rom_data->device);
|
||||||
rom_data->vendor, rom_data->device);
|
if (dev->id.pci.vendor != rom_data->vendor ||
|
||||||
if (dev->id.pci.vendor != rom_data->vendor || dev->id.pci.device != rom_data->device) {
|
dev->id.pci.device != rom_data->device) {
|
||||||
printk(BIOS_ERR,
|
printk(BIOS_ERR, "ROM ID mismatch: Vendor %04x, Device %04x\n",
|
||||||
"Device or Vendor ID mismatch Vendor %04x, Device %04x\n",
|
|
||||||
rom_data->vendor, rom_data->device);
|
rom_data->vendor, rom_data->device);
|
||||||
|
printk(BIOS_ERR, "Expected: Vendor %04x, Device %04x\n",
|
||||||
|
dev->id.pci.vendor, dev->id.pci.device);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue