MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / SectionNameToStr

Function SectionNameToStr

BaseTools/Source/C/VolInfo/VolInfo.c:563–719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561}
562
563static
564CHAR8 *
565SectionNameToStr (
566 IN EFI_SECTION_TYPE Type
567 )
568/*++
569
570Routine Description:
571
572 Converts EFI Section names to Strings
573
574Arguments:
575
576 Type - The EFI Section type
577
578Returns:
579
580 CHAR8* - Pointer to the String containing the section name.
581
582--*/
583{
584 CHAR8 *SectionStr;
585 CHAR8 *SectionTypeStringTable[] = {
586 //
587 // 0X00
588 //
589 "EFI_SECTION_ALL",
590 //
591 // 0x01
592 //
593 "EFI_SECTION_COMPRESSION",
594 //
595 // 0x02
596 //
597 "EFI_SECTION_GUID_DEFINED",
598 //
599 // 0x03
600 //
601 "Unknown section type - Reserved 0x03",
602 //
603 // 0x04
604 //
605 "Unknown section type - Reserved 0x04",
606 //
607 // 0x05
608 //
609 "Unknown section type - Reserved 0x05",
610 //
611 // 0x06
612 //
613 "Unknown section type - Reserved 0x06",
614 //
615 // 0x07
616 //
617 "Unknown section type - Reserved 0x07",
618 //
619 // 0x08
620 //

Callers 1

ParseSectionFunction · 0.85

Calls 3

printfFunction · 0.85
mallocFunction · 0.50
strcpyFunction · 0.50

Tested by

no test coverage detected