]> xenbits.xensource.com Git - seabios.git/commitdiff
Adjust debug levels of device discovery.
authorKevin O'Connor <kevin@koconnor.net>
Sat, 20 Mar 2010 21:53:03 +0000 (17:53 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 20 Mar 2010 21:53:03 +0000 (17:53 -0400)
Be sure to print at debug level 1 all devices found.

src/ata.c
src/usb-ehci.c
src/usb-ohci.c
src/usb-uhci.c

index d94d2cbe598d5ae45ebee2ba2a9d9217c06dbfed..dfe09e95b21007e4d74d93317ab913c6a4b16e4e 100644 (file)
--- 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)) {
index 6f23722692f67d5d3b06a9a224ca3124e93949d9..53067059ac6bc696210e4a5e368bb75a4dfc8c0b 100644 (file)
@@ -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);
 
index 8bf8d75af529e3d6763de6754743e41e391458df..71ae561c3a90d1b18718f7992a2262d55090d599 100644 (file)
@@ -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);
 
index f666ab7c3d32e4c2bf455bb23fc80f3cc22131a1..4e0c27684abd2a34bb1ad1a03915698aa765502a 100644 (file)
@@ -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);