summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Yung-Chieh Lo <yjlou@chromium.org>2011-08-24 12:53:43 +0800
committerYung-Chieh Lo <yjlou%chromium.org@gtempaccount.com>2011-08-24 18:38:46 -0700
commit9462e3e4c405fa810bec5cea564eea89e9d4eb01 (patch)
treef7ad6b7997f9237a1e78fda23e5c2931aa8bcf2d
parent68f6049f3f64fe395ae7e0e30e8a1b1729f34e69 (diff)
downloadvboot-9462e3e4c405fa810bec5cea564eea89e9d4eb01.tar.gz
dump_fmap: flashrom format should generate [start, end] pair.
Rather than [start, size] pair. BUG=no bug id TEST=tested on chroot. Change-Id: I34ec1f654f88f2e9a27b06f07825ff8bf4d9cd8e Reviewed-on: http://gerrit.chromium.org/gerrit/6573 Reviewed-by: Bill Richardson <wfrichar@chromium.org> Reviewed-by: Yung-Chieh Lo <yjlou%chromium.org@gtempaccount.com> Tested-by: Yung-Chieh Lo <yjlou%chromium.org@gtempaccount.com>
-rw-r--r--utility/dump_fmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utility/dump_fmap.c b/utility/dump_fmap.c
index c478c24e..0b88029b 100644
--- a/utility/dump_fmap.c
+++ b/utility/dump_fmap.c
@@ -54,7 +54,8 @@ static int dump_fmap(const void* ptr) {
break;
case FMT_FLASHROM:
if (ah->area_size)
- printf("0x%08x:0x%08x %s\n", ah->area_offset, ah->area_size - 1, buf);
+ printf("0x%08x:0x%08x %s\n", ah->area_offset,
+ ah->area_offset + ah->area_size - 1, buf);
break;
default:
printf("area: %d\n", i+1);