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>
This commit is contained in:
Vadim Bendebury 2015-02-26 18:20:53 -08:00 committed by Patrick Georgi
parent 5792e3b71f
commit 9eb6f6161a
1 changed files with 2 additions and 2 deletions

View File

@ -88,8 +88,8 @@ static int cbfs_load_prog_stage_by_offset(struct cbfs_media *media,
return -1; return -1;
} }
LOG("loading stage @ 0x%llx (%d bytes), entry @ 0x%llx\n", LOG("loading stage from %#zx @ 0x%llx (%d bytes), entry @ 0x%llx\n",
stage.load, stage.memlen, stage.entry); offset, stage.load, stage.memlen, stage.entry);
/* Stages rely the below clearing so that the bss is initialized. */ /* Stages rely the below clearing so that the bss is initialized. */
memset((void *)(uintptr_t)stage.load, 0, stage.memlen); memset((void *)(uintptr_t)stage.load, 0, stage.memlen);