From 9eb6f6161a82c144915ad37f93cba03597b4c905 Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Thu, 26 Feb 2015 18:20:53 -0800 Subject: cbfs: Print absolute offsets of loaded files Add the absolute offset value to the CBFS log, to make it easier to understand which particular CBFS section the file is loaded from. BRANCH=storm BUG=none TEST=rebooted a Whirlwind device, observed an empty line before the ramstage section of the log and absolute offsets reported by CBFS. Change-Id: Ifcb79ab386629446b98625a5416dfa5850a105f6 Signed-off-by: Patrick Georgi Original-Commit-Id: ecc4d1df7c51a263230c45ecac5981d53bdd44b1 Original-Change-Id: I5cc727127374d6e55b8ff6f45b250ef97125a8ec Original-Signed-off-by: Vadim Bendebury Original-Reviewed-on: https://chromium-review.googlesource.com/255120 Original-Reviewed-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/9827 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/lib/cbfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c index 84638dab88..88a292f26b 100644 --- a/src/lib/cbfs.c +++ b/src/lib/cbfs.c @@ -88,8 +88,8 @@ static int cbfs_load_prog_stage_by_offset(struct cbfs_media *media, return -1; } - LOG("loading stage @ 0x%llx (%d bytes), entry @ 0x%llx\n", - stage.load, stage.memlen, stage.entry); + LOG("loading stage from %#zx @ 0x%llx (%d bytes), entry @ 0x%llx\n", + offset, stage.load, stage.memlen, stage.entry); /* Stages rely the below clearing so that the bss is initialized. */ memset((void *)(uintptr_t)stage.load, 0, stage.memlen); -- cgit v1.2.3