diff --git a/device/device.c b/device/device.c index 1cff9c40ce..80eac82f86 100644 --- a/device/device.c +++ b/device/device.c @@ -260,8 +260,10 @@ static void read_resources(struct bus *bus) for (curdev = bus->children; curdev; curdev = curdev->sibling) { unsigned int links; int i; - printk(BIOS_SPEW, "%s: %s(%s) have_resources %d enabled %d\n", + printk(BIOS_SPEW, + "%s: %s(%s) dtsname %s have_resources %d enabled %d\n", __func__, bus->dev->dtsname, dev_path(bus->dev), + curdev->dtsname, curdev->have_resources, curdev->enabled); if (curdev->have_resources) { continue; diff --git a/include/device/device.h b/include/device/device.h index 33b81519b7..b01735d715 100644 --- a/include/device/device.h +++ b/include/device/device.h @@ -212,7 +212,7 @@ struct device { struct resource resource[MAX_RESOURCES]; unsigned int resources; - /* link are (down sream) buses attached to the device, usually a leaf + /* link are (downstream) buses attached to the device, usually a leaf * device with no children have 0 buses attached and a bridge has 1 bus */ struct bus link[MAX_LINKS]; diff --git a/lib/stage2.c b/lib/stage2.c index 198d063286..54dcdf4178 100644 --- a/lib/stage2.c +++ b/lib/stage2.c @@ -31,8 +31,9 @@ /** * Main function of the DRAM part of LinuxBIOS. * - * LinuxBIOS is divided into pre-DRAM part and DRAM part. The phases before - * this part are phase 0 and phase 1. This part contains phases x through y. + * LinuxBIOS is divided into pre-DRAM part and DRAM part. The stages before + * this part are stage 0 and stage 1. This part contains stage 2, which + * consists of phases 1 through 6. * * Device Enumeration: in the dev_enumerate() phase. * @@ -53,6 +54,7 @@ int stage2(void) post_code(0x20); + /* TODO: Explain why we use printk here although it is impossible */ printk(BIOS_NOTICE, console_test); dev_init();