MCPcopy Create free account
hub / github.com/coreboot/coreboot / region_name

Function region_name

util/ifdtool/ifdtool.c:388–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386}
387
388static const char *region_name(unsigned int region_type)
389{
390 if (region_type >= max_regions) {
391 fprintf(stderr, "Invalid region type.\n");
392 exit(EXIT_FAILURE);
393 }
394
395 return region_names[region_type].pretty;
396}
397
398static int region_num(const char *name)
399{

Callers 5

dump_regionFunction · 0.70
dump_frbaFunction · 0.70
calculate_gpr0_rangeFunction · 0.70
inject_regionFunction · 0.70
new_layoutFunction · 0.70

Calls 2

fprintfFunction · 0.85
exitFunction · 0.85

Tested by

no test coverage detected