cleanupmsg.diff changes the "(cleaned up) New segment.." message to be
displayed only when the condition happens. Signed-off-by: Alex Beregszaszi <alex@rtfs.hu> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@489 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
9816be9a2c
commit
efff00256e
1 changed files with 3 additions and 3 deletions
|
|
@ -103,11 +103,11 @@ static int load_elf_segments(struct lb_memory *mem,unsigned char *header, int he
|
|||
phdr[i].p_paddr, phdr[i].p_memsz, phdr[i].p_offset, phdr[i].p_filesz);
|
||||
/* Clean up the values */
|
||||
size = phdr[i].p_filesz;
|
||||
if (phdr[i].p_filesz > phdr[i].p_memsz) {
|
||||
if (size > phdr[i].p_memsz) {
|
||||
size = phdr[i].p_memsz;
|
||||
printk(BIOS_DEBUG, "(cleaned up) New segment addr 0x%x size 0x%x offset 0x%x\n",
|
||||
phdr[i].p_paddr, size, phdr[i].p_offset);
|
||||
}
|
||||
printk(BIOS_DEBUG, "(cleaned up) New segment addr 0x%x size 0x%x offset 0x%x\n",
|
||||
phdr[i].p_paddr, size, phdr[i].p_offset);
|
||||
|
||||
/* Verify the memory addresses in the segment are valid */
|
||||
if (!valid_area(mem, phdr[i].p_paddr, size))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue