mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-24 16:57:21 +00:00
Support new flashmap layout in dev_debug_vboot.
Make dev_debug_vboot look first for the new section names, then the old ones. Change-Id: I723f022bbbb23257c7c57db9543d7c35f524f95d BUG=chromium-os:12611 TEST=manual Rerun the steps that reproduce the problem as reported in the initial bug report. You should see much more information. Review URL: http://codereview.chromium.org/6621003
This commit is contained in:
@@ -57,7 +57,8 @@ static int dump_fmap(const void* ptr) {
|
||||
progname, buf, strerror(errno));
|
||||
retval = 1;
|
||||
} else {
|
||||
if (1 != fwrite(base_of_rom + ah->area_offset, ah->area_size, 1, fp)) {
|
||||
if (ah->area_size &&
|
||||
1 != fwrite(base_of_rom + ah->area_offset, ah->area_size, 1, fp)) {
|
||||
fprintf(stderr, "%s: can't write %s: %s\n",
|
||||
progname, buf, strerror(errno));
|
||||
retval = 1;
|
||||
|
||||
Reference in New Issue
Block a user