aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-03-20 17:53:03 -0400
committerKevin O'Connor <kevin@koconnor.net>2010-03-20 17:53:03 -0400
commit9dc243e3fd1476af9e4c1044d741f8546da12cd7 (patch)
tree6910def8065b12941372491eab305d2bdd30c6a2
parentd9c936181db3f64f592dd234ad76c5a85741a06d (diff)
downloadseabios-9dc243e3fd1476af9e4c1044d741f8546da12cd7.tar.gz
Adjust debug levels of device discovery.
Be sure to print at debug level 1 all devices found.
-rw-r--r--src/ata.c4
-rw-r--r--src/usb-ehci.c2
-rw-r--r--src/usb-ohci.c2
-rw-r--r--src/usb-uhci.c2
4 files changed, 6 insertions, 4 deletions
diff --git a/src/ata.c b/src/ata.c
index d94d2cbe..dfe09e95 100644
--- a/src/ata.c
+++ b/src/ata.c
@@ -775,6 +775,7 @@ init_drive_atapi(struct atadrive_s *dummy, u16 *buffer)
, adrive_g->chan_gf->chanid, adrive_g->slave
, extract_model(model, buffer), extract_version(buffer)
, (iscd ? "CD-Rom/DVD-Rom" : "Device"));
+ dprintf(1, "%s\n", adrive_g->drive.desc);
// fill cdidmap
if (iscd)
@@ -821,6 +822,7 @@ init_drive_ata(struct atadrive_s *dummy, u16 *buffer)
, adrive_g->chan_gf->chanid, adrive_g->slave
, extract_model(model, buffer), extract_version(buffer)
, (u32)adjsize, adjprefix);
+ dprintf(1, "%s\n", adrive_g->drive.desc);
// Setup disk geometry translation.
setup_translation(&adrive_g->drive);
@@ -845,7 +847,7 @@ powerup_await_non_bsy(u16 base)
break;
orstatus |= status;
if (orstatus == 0xff) {
- dprintf(1, "powerup IDE floating\n");
+ dprintf(4, "powerup IDE floating\n");
return orstatus;
}
if (check_time(SpinupEnd)) {
diff --git a/src/usb-ehci.c b/src/usb-ehci.c
index 6f237226..53067059 100644
--- a/src/usb-ehci.c
+++ b/src/usb-ehci.c
@@ -260,7 +260,7 @@ ehci_init(u16 bdf, int busid, int compbdf)
cntl->caps = caps;
cntl->regs = (void*)caps + readb(&caps->caplength);
- dprintf(3, "EHCI init on dev %02x:%02x.%x (regs=%p)\n"
+ dprintf(1, "EHCI init on dev %02x:%02x.%x (regs=%p)\n"
, pci_bdf_to_bus(bdf), pci_bdf_to_dev(bdf)
, pci_bdf_to_fn(bdf), cntl->regs);
diff --git a/src/usb-ohci.c b/src/usb-ohci.c
index 8bf8d75a..71ae561c 100644
--- a/src/usb-ohci.c
+++ b/src/usb-ohci.c
@@ -228,7 +228,7 @@ ohci_init(u16 bdf, int busid)
u32 baseaddr = pci_config_readl(bdf, PCI_BASE_ADDRESS_0);
cntl->regs = (void*)(baseaddr & PCI_BASE_ADDRESS_MEM_MASK);
- dprintf(3, "OHCI init on dev %02x:%02x.%x (regs=%p)\n"
+ dprintf(1, "OHCI init on dev %02x:%02x.%x (regs=%p)\n"
, pci_bdf_to_bus(bdf), pci_bdf_to_dev(bdf)
, pci_bdf_to_fn(bdf), cntl->regs);
diff --git a/src/usb-uhci.c b/src/usb-uhci.c
index f666ab7c..4e0c2768 100644
--- a/src/usb-uhci.c
+++ b/src/usb-uhci.c
@@ -195,7 +195,7 @@ uhci_init(u16 bdf, int busid)
cntl->iobase = (pci_config_readl(bdf, PCI_BASE_ADDRESS_4)
& PCI_BASE_ADDRESS_IO_MASK);
- dprintf(3, "UHCI init on dev %02x:%02x.%x (io=%x)\n"
+ dprintf(1, "UHCI init on dev %02x:%02x.%x (io=%x)\n"
, pci_bdf_to_bus(bdf), pci_bdf_to_dev(bdf)
, pci_bdf_to_fn(bdf), cntl->iobase);