summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2015-02-26 18:20:53 -0800
committerPatrick Georgi <pgeorgi@google.com>2015-04-21 08:17:40 +0200
commit9eb6f6161a82c144915ad37f93cba03597b4c905 (patch)
tree82b9629485c5261e308fdd17d9ef616312534066 /src
parent5792e3b71f205446155bb40bea9c52dfe1969d8b (diff)
downloadcoreboot-9eb6f6161a82c144915ad37f93cba03597b4c905.tar.xz
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 <pgeorgi@chromium.org> Original-Commit-Id: ecc4d1df7c51a263230c45ecac5981d53bdd44b1 Original-Change-Id: I5cc727127374d6e55b8ff6f45b250ef97125a8ec Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/255120 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/9827 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/lib/cbfs.c4
1 files changed, 2 insertions, 2 deletions
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);