]> xenbits.xensource.com Git - seabios.git/commitdiff
Increase the debug level of several frequent dprintf() statements.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 11 Mar 2012 15:19:52 +0000 (11:19 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 11 Mar 2012 15:25:03 +0000 (11:25 -0400)
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/ahci.c
src/coreboot.c
src/pci.c

index 9b3ce2f391f56bc4d6e8f282454574e146e01f9b..4abfec5f542d46b80c82d272aacaaa056f2392c9 100644 (file)
@@ -130,7 +130,7 @@ static int ahci_command(struct ahci_port_s *port, int iswrite, int isatapi,
     SET_FLATPTR(list[0].base,   ((u32)(cmd)));
     SET_FLATPTR(list[0].baseu,  0);
 
-    dprintf(2, "AHCI/%d: send cmd ...\n", pnr);
+    dprintf(8, "AHCI/%d: send cmd ...\n", pnr);
     intbits = ahci_port_readl(ctrl, pnr, PORT_IRQ_STAT);
     if (intbits)
         ahci_port_writel(ctrl, pnr, PORT_IRQ_STAT, intbits);
@@ -160,7 +160,7 @@ static int ahci_command(struct ahci_port_s *port, int iswrite, int isatapi,
             }
             yield();
         }
-        dprintf(2, "AHCI/%d: ... intbits 0x%x, status 0x%x ...\n",
+        dprintf(8, "AHCI/%d: ... intbits 0x%x, status 0x%x ...\n",
                 pnr, intbits, status);
     } while (status & ATA_CB_STAT_BSY);
 
@@ -168,7 +168,7 @@ static int ahci_command(struct ahci_port_s *port, int iswrite, int isatapi,
                                   ATA_CB_STAT_ERR)) &&
                ATA_CB_STAT_RDY == (status & (ATA_CB_STAT_RDY)));
     if (success) {
-        dprintf(2, "AHCI/%d: ... finished, status 0x%x, OK\n", pnr,
+        dprintf(8, "AHCI/%d: ... finished, status 0x%x, OK\n", pnr,
                 status);
     } else {
         dprintf(2, "AHCI/%d: ... finished, status 0x%x, ERROR 0x%x\n", pnr,
@@ -250,7 +250,7 @@ ahci_disk_readwrite_aligned(struct disk_op_s *op, int iswrite)
     sata_prep_readwrite(&cmd->fis, op, iswrite);
     rc = ahci_command(port, iswrite, 0, op->buf_fl,
                       op->count * DISK_SECTOR_SIZE);
-    dprintf(2, "ahci disk %s, lba %6x, count %3x, buf %p, rc %d\n",
+    dprintf(8, "ahci disk %s, lba %6x, count %3x, buf %p, rc %d\n",
             iswrite ? "write" : "read", (u32)op->lba, op->count, op->buf_fl, rc);
     if (rc < 0)
         return DISK_RET_EBADTRACK;
@@ -470,11 +470,11 @@ static int ahci_port_init(struct ahci_port_s *port)
     for (;;) {
         stat = ahci_port_readl(ctrl, pnr, PORT_SCR_STAT);
         if ((stat & 0x07) == 0x03) {
-            dprintf(1, "AHCI/%d: link up\n", port->pnr);
+            dprintf(2, "AHCI/%d: link up\n", port->pnr);
             break;
         }
         if (check_tsc(end)) {
-            dprintf(1, "AHCI/%d: link down\n", port->pnr);
+            dprintf(2, "AHCI/%d: link down\n", port->pnr);
             return -1;
         }
         yield();
index e328c15acfb53f9d6cfb6b2b173d61163a89142a..4ae44e5b5b3765eaa7f3028c5161b531ad8492db 100644 (file)
@@ -323,7 +323,7 @@ cbfs_verify(struct cbfs_file *file)
         return NULL;
     u64 magic = file->magic;
     if (magic == CBFS_FILE_MAGIC) {
-        dprintf(5, "Found CBFS file %s\n", file->filename);
+        dprintf(8, "Found CBFS file %s\n", file->filename);
         return file;
     }
     return NULL;
@@ -350,7 +350,7 @@ cbfs_getnext(struct cbfs_file *file)
 struct cbfs_file *
 cbfs_findfile(const char *fname)
 {
-    dprintf(3, "Searching CBFS for %s\n", fname);
+    dprintf(7, "Searching CBFS for %s\n", fname);
     struct cbfs_file *file;
     for (file = cbfs_getfirst(); file; file = cbfs_getnext(file))
         if (strcmp(fname, file->filename) == 0)
@@ -365,7 +365,7 @@ cbfs_findprefix(const char *prefix, struct cbfs_file *last)
     if (!CONFIG_COREBOOT || !CONFIG_COREBOOT_FLASH)
         return NULL;
 
-    dprintf(3, "Searching CBFS for prefix %s\n", prefix);
+    dprintf(7, "Searching CBFS for prefix %s\n", prefix);
     int len = strlen(prefix);
     struct cbfs_file *file;
     if (! last)
index 6031c9ffe400c5d9ed737f344612f177091e394e..49bc34e0afbef857914f0c17d37ee0338f3c724c 100644 (file)
--- a/src/pci.c
+++ b/src/pci.c
@@ -235,14 +235,14 @@ pci_reboot(void)
 u32 VISIBLE32FLAT
 pci_readl_32(u32 addr)
 {
-    dprintf(3, "32: pci read : %x\n", addr);
+    dprintf(9, "32: pci read : %x\n", addr);
     return readl((void*)addr);
 }
 
 u32 pci_readl(u32 addr)
 {
     if (MODESEGMENT) {
-        dprintf(3, "16: pci read : %x\n", addr);
+        dprintf(9, "16: pci read : %x\n", addr);
         extern void _cfunc32flat_pci_readl_32(u32 addr);
         return call32(_cfunc32flat_pci_readl_32, addr, -1);
     } else {
@@ -258,7 +258,7 @@ struct reg32 {
 void VISIBLE32FLAT
 pci_writel_32(struct reg32 *reg32)
 {
-    dprintf(3, "32: pci write: %x, %x (%p)\n", reg32->addr, reg32->data, reg32);
+    dprintf(9, "32: pci write: %x, %x (%p)\n", reg32->addr, reg32->data, reg32);
     writel((void*)(reg32->addr), reg32->data);
 }
 
@@ -266,7 +266,7 @@ void pci_writel(u32 addr, u32 val)
 {
     struct reg32 reg32 = { .addr = addr, .data = val };
     if (MODESEGMENT) {
-        dprintf(3, "16: pci write: %x, %x (%x:%p)\n",
+        dprintf(9, "16: pci write: %x, %x (%x:%p)\n",
                 reg32.addr, reg32.data, GET_SEG(SS), &reg32);
         void *flatptr = MAKE_FLATPTR(GET_SEG(SS), &reg32);
         extern void _cfunc32flat_pci_writel_32(struct reg32 *reg32);