diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2010-03-22 11:42:32 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-03-22 11:42:32 +0000 |
commit | c02b4fc9db3c3c1e263027382697b566127f66bb (patch) | |
tree | 11bd18488e360e5c1beeb9ccb852ef4489c3689a /src/mainboard/olpc/btest | |
parent | 27852aba6787617ca5656995cbc7e8ef0a3ea22c (diff) |
printk_foo -> printk(BIOS_FOO, ...)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5266 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/olpc/btest')
-rw-r--r-- | src/mainboard/olpc/btest/mainboard.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mainboard/olpc/btest/mainboard.c b/src/mainboard/olpc/btest/mainboard.c index 40e363f49a..6df993eca4 100644 --- a/src/mainboard/olpc/btest/mainboard.c +++ b/src/mainboard/olpc/btest/mainboard.c @@ -49,22 +49,22 @@ static void init_dcon(void) { unsigned short rev = 0; unsigned short iobase = _getsmbusbase(); - printk_debug("CHECKING FOR DCON (%x)\n", iobase); + printk(BIOS_DEBUG, "CHECKING FOR DCON (%x)\n", iobase); /* Get the IO base for the SMBUS */ rev = do_smbus_read_word(iobase, 0x0D << 1, 0x00); if (rev & 0xDC00) { - printk_debug("DCON FOUND - REV %x\n", rev); + printk(BIOS_DEBUG, "DCON FOUND - REV %x\n", rev); /* Enable the DCON */ ret = do_smbus_write_word(iobase, 0x0D << 1, 0x01, 0x0069); if (ret != 0) - printk_debug("DCON ENABLE FAILED\n", ret); + printk(BIOS_DEBUG, "DCON ENABLE FAILED\n", ret); } else - printk_debug("DCON NOT FOUND (%x)\n", rev); + printk(BIOS_DEBUG, "DCON NOT FOUND (%x)\n", rev); write_bit(rev > 0 ? 1 : 0); } @@ -104,18 +104,18 @@ static void init(struct device *dev) { unsigned char usbirq = 0xa; */ - printk_debug("OLPC BTEST ENTER %s\n", __func__); + printk(BIOS_DEBUG, "OLPC BTEST ENTER %s\n", __func__); #if 0 /* I can't think of any reason NOT to just set this. If it turns out we want this to be * conditional we can make it a config variable later. */ - printk_debug("%s (%x,%x)SET USB PCI interrupt line to %d\n", + printk(BIOS_DEBUG, "%s (%x,%x)SET USB PCI interrupt line to %d\n", __func__, bus, devfn, usbirq); usb = dev_find_slot(bus, devfn); if (! usb){ - printk_err("Could not find USB\n"); + printk(BIOS_ERR, "Could not find USB\n"); } else { pci_write_config8(usb, PCI_INTERRUPT_LINE, usbirq); } @@ -123,7 +123,7 @@ static void init(struct device *dev) { init_dcon(); init_cafe_irq(); - printk_debug("OLPC BTEST EXIT %s\n", __func__); + printk(BIOS_DEBUG, "OLPC BTEST EXIT %s\n", __func__); } static void enable_dev(struct device *dev) |