From aadf018821ebfa63d6ac9d2429ae1fb483dd6cb3 Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Tue, 13 May 2014 15:43:58 -0700 Subject: [PATCH] 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 Change-Id: Ia13593394fccbb225f2bd9ab2b9228bac29d50fb Signed-off-by: Vadim Bendebury Reviewed-on: https://chromium-review.googlesource.com/199672 Reviewed-by: Aaron Durbin --- src/lib/selfboot.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/selfboot.c b/src/lib/selfboot.c index 7193b4b550..5b753e4890 100644 --- a/src/lib/selfboot.c +++ b/src/lib/selfboot.c @@ -340,9 +340,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: