From: Kevin O'Connor Date: Sun, 11 Mar 2012 15:19:52 +0000 (-0400) Subject: Increase the debug level of several frequent dprintf() statements. X-Git-Tag: rel-1.7.0~13 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=bf079e16f8b0d016eb09787c2aebda359c41391a;p=seabios.git Increase the debug level of several frequent dprintf() statements. Signed-off-by: Kevin O'Connor --- diff --git a/src/ahci.c b/src/ahci.c index 9b3ce2f..4abfec5 100644 --- a/src/ahci.c +++ b/src/ahci.c @@ -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(); diff --git a/src/coreboot.c b/src/coreboot.c index e328c15..4ae44e5 100644 --- a/src/coreboot.c +++ b/src/coreboot.c @@ -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) diff --git a/src/pci.c b/src/pci.c index 6031c9f..49bc34e 100644 --- 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), ®32); void *flatptr = MAKE_FLATPTR(GET_SEG(SS), ®32); extern void _cfunc32flat_pci_writel_32(struct reg32 *reg32);