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:
parent
9d16f2066e
commit
d3a96b3f67
1 changed files with 5 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue