summaryrefslogtreecommitdiff
path: root/util/cbfstool/cbfstool.c
diff options
context:
space:
mode:
authorWerner Zeh <werner.zeh@siemens.com>2018-04-26 09:26:38 +0200
committerPatrick Georgi <pgeorgi@google.com>2018-04-30 06:24:12 +0000
commit7850b5836bfe250f31cc32ca3cde70077fcbd887 (patch)
tree7b5f8c0259082671d94eef4d5ffd4bc9fe53d400 /util/cbfstool/cbfstool.c
parent3a2fd57e711eb4f64e0cd17e45df3b3f56559b6e (diff)
downloadcoreboot-7850b5836bfe250f31cc32ca3cde70077fcbd887.tar.xz
cbfstool: Add region offset information to layout command
The layout command prints all FMAP regions in the final image among with the region size. Extend this command to show the offset of each region in the image. Change-Id: I5f945ba046bd2f1cb50a93e90eb887f60c6fde8a Signed-off-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-on: https://review.coreboot.org/25851 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Georgi <pgeorgi@google.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'util/cbfstool/cbfstool.c')
-rw-r--r--util/cbfstool/cbfstool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c
index 7156e00bc6..d4de409a85 100644
--- a/util/cbfstool/cbfstool.c
+++ b/util/cbfstool/cbfstool.c
@@ -930,7 +930,8 @@ static int cbfs_layout(void)
qualifier = "read-only, ";
else if (region_is_modern_cbfs((const char *)current->name))
qualifier = "CBFS, ";
- printf(" (%ssize %u)\n", qualifier, current->size);
+ printf(" (%ssize %u, offset %u)\n", qualifier, current->size,
+ current->offset);
i += lookahead - 1;
}