printk_foo -> printk(BIOS_FOO, ...)
[coreboot.git] / src / northbridge / intel / i440bx / northbridge.c
index 26229a953c6bd5e7e68e9b7ac1a5808964cbcc01..772ab1c8f3d98853cb81004806c061cd13b5bd81 100644 (file)
@@ -15,7 +15,7 @@
 
 static void northbridge_init(device_t dev)
 {
-       printk_spew("Northbridge Init\n");
+       printk(BIOS_SPEW, "Northbridge Init\n");
 }
 
 static struct device_operations northbridge_operations = {
@@ -85,7 +85,6 @@ static void i440bx_domain_set_resources(device_t dev)
        pci_tolm = find_pci_tolm(&dev->link[0]);
        mc_dev = dev->link[0].children;
        if (mc_dev) {
-               uint16_t tolm_r;
                unsigned long tomk, tolmk;
                int idx;
 
@@ -98,7 +97,7 @@ static void i440bx_domain_set_resources(device_t dev)
                /* Convert to KB. */
                tomk *= (8 * 1024);
 
-               printk_debug("Setting RAM size to %d MB\n", tomk / 1024);
+               printk(BIOS_DEBUG, "Setting RAM size to %ld MB\n", tomk / 1024);
 
                /* Compute the top of low memory. */
                tolmk = pci_tolm / 1024;