Formatting .c/.h files and fix memory leakage issues
Signed-off-by: John Chung <john.chung@arm.com>
Change-Id: Id8328f412c2724992d80c0b3f895c8f85bc4ae68
diff --git a/generator/sections/gen-section.c b/generator/sections/gen-section.c
index 012f88f..0b07af0 100644
--- a/generator/sections/gen-section.c
+++ b/generator/sections/gen-section.c
@@ -6,25 +6,42 @@
#include "gen-section.h"
CPER_GENERATOR_DEFINITION generator_definitions[] = {
- {&gEfiProcessorGenericErrorSectionGuid, "generic", generate_section_generic},
- {&gEfiIa32X64ProcessorErrorSectionGuid, "ia32x64", generate_section_ia32x64},
- {&gEfiArmProcessorErrorSectionGuid, "arm", generate_section_arm},
- {&gEfiPlatformMemoryErrorSectionGuid, "memory", generate_section_memory},
- {&gEfiPlatformMemoryError2SectionGuid, "memory2", generate_section_memory2},
- {&gEfiPcieErrorSectionGuid, "pcie", generate_section_pcie},
- {&gEfiFirmwareErrorSectionGuid, "firmware", generate_section_firmware},
- {&gEfiPciBusErrorSectionGuid, "pcibus", generate_section_pci_bus},
- {&gEfiPciDevErrorSectionGuid, "pcidev", generate_section_pci_dev},
- {&gEfiDMArGenericErrorSectionGuid, "dmargeneric", generate_section_dmar_generic},
- {&gEfiDirectedIoDMArErrorSectionGuid, "dmarvtd", generate_section_dmar_vtd},
- {&gEfiIommuDMArErrorSectionGuid, "dmariommu", generate_section_dmar_iommu},
- {&gEfiCcixPerLogErrorSectionGuid, "ccixper", generate_section_ccix_per},
- {&gEfiCxlProtocolErrorSectionGuid, "cxlprotocol", generate_section_cxl_protocol},
- {&gEfiCxlGeneralMediaErrorSectionGuid, "cxlcomponent-media", generate_section_cxl_component},
- {&gEfiCxlDramEventErrorSectionGuid, "cxlcomponent-dram", generate_section_cxl_component},
- {&gEfiCxlMemoryModuleErrorSectionGuid, "cxlcomponent-memory", generate_section_cxl_component},
- {&gEfiCxlPhysicalSwitchErrorSectionGuid, "cxlcomponent-pswitch", generate_section_cxl_component},
- {&gEfiCxlVirtualSwitchErrorSectionGuid, "cxlcomponent-vswitch", generate_section_cxl_component},
- {&gEfiCxlMldPortErrorSectionGuid, "cxlcomponent-mld", generate_section_cxl_component},
+ { &gEfiProcessorGenericErrorSectionGuid, "generic",
+ generate_section_generic },
+ { &gEfiIa32X64ProcessorErrorSectionGuid, "ia32x64",
+ generate_section_ia32x64 },
+ { &gEfiArmProcessorErrorSectionGuid, "arm", generate_section_arm },
+ { &gEfiPlatformMemoryErrorSectionGuid, "memory",
+ generate_section_memory },
+ { &gEfiPlatformMemoryError2SectionGuid, "memory2",
+ generate_section_memory2 },
+ { &gEfiPcieErrorSectionGuid, "pcie", generate_section_pcie },
+ { &gEfiFirmwareErrorSectionGuid, "firmware",
+ generate_section_firmware },
+ { &gEfiPciBusErrorSectionGuid, "pcibus", generate_section_pci_bus },
+ { &gEfiPciDevErrorSectionGuid, "pcidev", generate_section_pci_dev },
+ { &gEfiDMArGenericErrorSectionGuid, "dmargeneric",
+ generate_section_dmar_generic },
+ { &gEfiDirectedIoDMArErrorSectionGuid, "dmarvtd",
+ generate_section_dmar_vtd },
+ { &gEfiIommuDMArErrorSectionGuid, "dmariommu",
+ generate_section_dmar_iommu },
+ { &gEfiCcixPerLogErrorSectionGuid, "ccixper",
+ generate_section_ccix_per },
+ { &gEfiCxlProtocolErrorSectionGuid, "cxlprotocol",
+ generate_section_cxl_protocol },
+ { &gEfiCxlGeneralMediaErrorSectionGuid, "cxlcomponent-media",
+ generate_section_cxl_component },
+ { &gEfiCxlDramEventErrorSectionGuid, "cxlcomponent-dram",
+ generate_section_cxl_component },
+ { &gEfiCxlMemoryModuleErrorSectionGuid, "cxlcomponent-memory",
+ generate_section_cxl_component },
+ { &gEfiCxlPhysicalSwitchErrorSectionGuid, "cxlcomponent-pswitch",
+ generate_section_cxl_component },
+ { &gEfiCxlVirtualSwitchErrorSectionGuid, "cxlcomponent-vswitch",
+ generate_section_cxl_component },
+ { &gEfiCxlMldPortErrorSectionGuid, "cxlcomponent-mld",
+ generate_section_cxl_component },
};
-const size_t generator_definitions_len = sizeof(generator_definitions) / sizeof(CPER_GENERATOR_DEFINITION);
\ No newline at end of file
+const size_t generator_definitions_len =
+ sizeof(generator_definitions) / sizeof(CPER_GENERATOR_DEFINITION);