cbfstool: Show current FMAP region in print

In case multiple FMAP regions are specified, print the FMAP name.
Useful if VBOOT is enabled and multiple CBFS are printed.

Change-Id: Id6f29ebeda8a9bde6dfe39362e0f2a5e33c86b26
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/26862
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Patrick Rudolph 2018-06-05 15:11:01 +02:00 committed by Patrick Georgi
parent 7fd1e4b9b1
commit fb87e413bd
1 changed files with 3 additions and 1 deletions

View File

@ -1072,8 +1072,10 @@ static int cbfs_print(void)
return 1; return 1;
if (param.machine_parseable) if (param.machine_parseable)
return cbfs_print_parseable_directory(&image); return cbfs_print_parseable_directory(&image);
else else {
printf("FMAP REGION: %s\n", param.region_name);
return cbfs_print_directory(&image); return cbfs_print_directory(&image);
}
} }
static int cbfs_extract(void) static int cbfs_extract(void)