aboutsummaryrefslogtreecommitdiffstats
path: root/src/optionroms.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-04-16 20:43:07 -0400
committerKevin O'Connor <kevin@koconnor.net>2009-04-16 20:43:07 -0400
commitc36273f9be6dc9bb1e91b1feeb1541693e3786ea (patch)
treed71d161883779e5792e99a2cd6b94b753aa9c4ea /src/optionroms.c
parentffb81a40b1ef4bba70d6e4881d447f2947ab3561 (diff)
downloadseabios-c36273f9be6dc9bb1e91b1feeb1541693e3786ea.tar.gz
Minor - add more debugging output to option rom scanning.
Diffstat (limited to 'src/optionroms.c')
-rw-r--r--src/optionroms.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/optionroms.c b/src/optionroms.c
index f3c4cfd3..841cae27 100644
--- a/src/optionroms.c
+++ b/src/optionroms.c
@@ -111,6 +111,8 @@ call_bcv(u16 seg, u16 ip)
static int
is_valid_rom(struct rom_header *rom)
{
+ dprintf(6, "Checking rom %p (sig %x size %d)\n"
+ , rom, rom->signature, rom->size);
if (rom->signature != OPTION_ROM_SIGNATURE)
return 0;
if (! rom->size)
@@ -167,7 +169,8 @@ copy_rom(struct rom_header *rom)
dprintf(1, "Option rom %p doesn't fit.\n", rom);
return NULL;
}
- dprintf(4, "Copying option rom from %p to %x\n", rom, next_rom);
+ dprintf(4, "Copying option rom (size %d) from %p to %x\n"
+ , romsize, rom, next_rom);
memcpy((void*)next_rom, rom, romsize);
return (struct rom_header *)next_rom;
}