Implement fmt::Display for RegionKind
Implement fmt::Display
for printing names to users. Uses the pretty names from coreboot's ifdtool.
An example, report_regions
, uses this to print basic info about the regions in a flash image.
Flash Regions
0: Flash Descriptor
(0x00000000 - 0x00000FFF)
1: BIOS
(0x00400000 - 0x00FFFFFF)
2: Intel ME
(0x00001000 - 0x003FFFFF)
3: GbE
(0x07FFF000 - 0x00000FFF) (unused)
4: Platform Data
(0x07FFF000 - 0x00000FFF) (unused)
8: EC
(0x07FFF000 - 0x00000FFF) (unused)