aboutsummaryrefslogtreecommitdiffstats
path: root/src/optionroms.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-07-29 20:41:39 -0400
committerKevin O'Connor <kevin@koconnor.net>2009-07-29 20:41:39 -0400
commitc95d2cee36db79c88253d43a90230ceadf0c26cf (patch)
tree22ba1fd5527278ca9dc5f69370f9c9907c26aeca /src/optionroms.c
parent8c8a880b584ccf8958d67e99a6750ba32d0b6454 (diff)
downloadseabios-c95d2cee36db79c88253d43a90230ceadf0c26cf.tar.gz
Add auto-generated version info to each build.
Add versioning info to initial debug and screen banner output.
Diffstat (limited to 'src/optionroms.c')
-rw-r--r--src/optionroms.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/optionroms.c b/src/optionroms.c
index 00fa85dc..819b318c 100644
--- a/src/optionroms.c
+++ b/src/optionroms.c
@@ -274,7 +274,7 @@ map_pcirom(u16 bdf, u32 vendev)
struct rom_header *rom = (void*)orig;
for (;;) {
- dprintf(5, "Inspecting possible rom at %p (dv=%x bdf=%x)\n"
+ dprintf(5, "Inspecting possible rom at %p (dv=%08x bdf=%x)\n"
, rom, vendev, bdf);
if (rom->signature != OPTION_ROM_SIGNATURE) {
dprintf(6, "No option rom signature (got %x)\n", rom->signature);
@@ -290,7 +290,7 @@ map_pcirom(u16 bdf, u32 vendev)
if (vd == vendev && pci->type == PCIROM_CODETYPE_X86)
// A match
break;
- dprintf(6, "Didn't match dev/ven (got %x) or type (got %d)\n"
+ dprintf(6, "Didn't match dev/ven (got %08x) or type (got %d)\n"
, vd, pci->type);
if (pci->indicator & 0x80) {
dprintf(6, "No more images left\n");
@@ -313,7 +313,7 @@ static int
init_pcirom(u16 bdf, int isvga)
{
u32 vendev = pci_config_readl(bdf, PCI_VENDOR_ID);
- dprintf(4, "Attempting to init PCI bdf %02x:%02x.%x (dev/ven %x)\n"
+ dprintf(4, "Attempting to init PCI bdf %02x:%02x.%x (dev/ven %08x)\n"
, pci_bdf_to_bus(bdf), pci_bdf_to_dev(bdf), pci_bdf_to_fn(bdf)
, vendev);
struct rom_header *rom = lookup_hardcode(vendev);
@@ -437,7 +437,7 @@ vga_setup()
call16_int(0x10, &br);
// Write to screen.
- printf("Starting SeaBIOS\n\n");
+ printf("Starting SeaBIOS (version %s)\n\n", VERSION);
}
void