summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2014-05-13 15:43:58 -0700
committerMarc Jones <marc.jones@se-eng.com>2014-12-31 05:26:27 +0100
commit9e208bc357b9357c05ad05fe4482ffaeb0047312 (patch)
tree900d848930b2702ae1125cfa3885514b9af8da10 /src/lib
parent0dadb767a0e6399b0b24becd838b452d2f12beb2 (diff)
Print segment clean up information only when required.
Eliminate duplicated printout and if needed, print only changed information. BUG=none TEST=verified that the 'New segment dstaddr...' message is not duplicated anymore Original-Change-Id: Ia13593394fccbb225f2bd9ab2b9228bac29d50fb Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/199672 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> (cherry picked from commit aadf018821ebfa63d6ac9d2429ae1fb483dd6cb3) Signed-off-by: Marc Jones <marc.jones@se-eng.com> Change-Id: I7544bddc4026191395cfe3b8ac66256ec223391e Reviewed-on: http://review.coreboot.org/7937 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/selfboot.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/selfboot.c b/src/lib/selfboot.c
index 8e9e0dec93..de059b0faa 100644
--- a/src/lib/selfboot.c
+++ b/src/lib/selfboot.c
@@ -252,9 +252,10 @@ static int build_self_segment_list(
/* Clean up the values */
if (new->s_filesz > new->s_memsz) {
new->s_filesz = new->s_memsz;
+ printk(BIOS_DEBUG,
+ " cleaned up filesize 0x%lx\n",
+ new->s_filesz);
}
- printk(BIOS_DEBUG, " (cleaned up) New segment addr 0x%lx size 0x%lx offset 0x%lx filesize 0x%lx\n",
- new->s_dstaddr, new->s_memsz, new->s_srcaddr, new->s_filesz);
break;
case PAYLOAD_SEGMENT_BSS: