Make the lar more informative about loadaddress and entry point.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>


git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@522 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Carl-Daniel Hailfinger 2007-11-27 01:12:48 +00:00
commit d3a96b3f67

View file

@ -517,19 +517,22 @@ void lar_list_files(struct lar *lar, struct file *files)
printf(" %s ", filename);
if (ntohl(header->compression) == none) {
printf("(%d bytes @0x%lx)\n",
printf("(%d bytes @0x%lx);",
ntohl(header->len),
(unsigned long)(ptr - lar->map) +
ntohl(header->offset));
} else {
printf("(%d bytes, %s compressed to %d bytes "
"@0x%lx)\n",
"@0x%lx);",
ntohl(header->reallen),
algo_name[ntohl(header->compression)],
ntohl(header->len),
(unsigned long)(ptr - lar->map) +
ntohl(header->offset));
}
printf("loadaddress 0x%#x entry 0x%#x\n",
ntohl(header->loadaddress),
ntohl(header->entry));
}
ptr += get_next_offset(header);