[LinuxBIOS] r489 - LinuxBIOSv3/lib
svn at openbios.org
svn at openbios.org
Wed Sep 5 03:53:37 CEST 2007
Author: stepan
Date: 2007-09-05 03:53:37 +0200 (Wed, 05 Sep 2007)
New Revision: 489
Modified:
LinuxBIOSv3/lib/elfboot.c
Log:
cleanupmsg.diff changes the "(cleaned up) New segment.." message to be
displayed only when the condition happens.
Signed-off-by: Alex Beregszaszi <alex at rtfs.hu>
Acked-by: Stefan Reinauer <stepan at coresystems.de>
Modified: LinuxBIOSv3/lib/elfboot.c
===================================================================
--- LinuxBIOSv3/lib/elfboot.c 2007-09-05 01:47:21 UTC (rev 488)
+++ LinuxBIOSv3/lib/elfboot.c 2007-09-05 01:53:37 UTC (rev 489)
@@ -103,11 +103,11 @@
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))
More information about the coreboot
mailing list