mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 21:11:03 +03:00
Standardised debug messages to make it easy to get a bus scan printout
(just build debugging versions of the relevant bus objects).
This commit is contained in:
@@ -39,7 +39,7 @@ static int fill_eisa_device ( struct eisa_device *eisa ) {
|
||||
eisa->prod_id = ( inb ( eisa->ioaddr + EISA_PROD_ID_LO ) << 8 )
|
||||
+ inb ( eisa->ioaddr + EISA_PROD_ID_HI );
|
||||
|
||||
DBG ( "EISA slot %d (base %#hx) ID %hx:%hx (\"%s\")\n",
|
||||
DBG ( "EISA found slot %d (base %#hx) ID %hx:%hx (\"%s\")\n",
|
||||
eisa->slot, eisa->ioaddr, eisa->mfg_id, eisa->prod_id,
|
||||
isa_id_string ( eisa->mfg_id, eisa->prod_id ) );
|
||||
|
||||
|
||||
@@ -39,7 +39,8 @@ static int fill_mca_device ( struct mca_device *mca ) {
|
||||
/* Kill all setup modes */
|
||||
outb_p ( 0, MCA_ADAPTER_SETUP_REG );
|
||||
|
||||
DBG ( "MCA slot %d id %hx (%hhx:%hhx:%hhx:%hhx:%hhx:%hhx:%hhx:%hhx)\n",
|
||||
DBG ( "MCA found slot %d id %hx "
|
||||
"(POS %hhx:%hhx:%hhx:%hhx:%hhx:%hhx:%hhx:%hhx)\n",
|
||||
mca->slot, MCA_ID ( mca ),
|
||||
mca->pos[0], mca->pos[1], mca->pos[2], mca->pos[3],
|
||||
mca->pos[4], mca->pos[5], mca->pos[6], mca->pos[7] );
|
||||
|
||||
@@ -73,7 +73,7 @@ static int fill_pci_device ( struct pci_device *pci ) {
|
||||
pci_read_config_byte ( pci, PCI_INTERRUPT_LINE, &pci->irq );
|
||||
}
|
||||
|
||||
DBG ( "%hhx:%hhx.%d Class %hx: %hx:%hx (rev %hhx)\n",
|
||||
DBG ( "PCI found %hhx:%hhx.%d Class %hx: %hx:%hx (rev %hhx)\n",
|
||||
PCI_BUS ( pci->busdevfn ), PCI_DEV ( pci->busdevfn ),
|
||||
PCI_FUNC ( pci->busdevfn ), pci->class, pci->vendor, pci->dev_id,
|
||||
pci->revision );
|
||||
|
||||
Reference in New Issue
Block a user