Add PCI bus section support.
diff --git a/cper-parse.c b/cper-parse.c
index ded404c..19316bc 100644
--- a/cper-parse.c
+++ b/cper-parse.c
@@ -15,6 +15,7 @@
#include "sections/cper-section-arm.h"
#include "sections/cper-section-memory.h"
#include "sections/cper-section-pcie.h"
+#include "sections/cper-section-pci-bus.h"
//Private pre-definitions.
json_object* cper_header_to_ir(EFI_COMMON_ERROR_RECORD_HEADER* header);
@@ -316,8 +317,8 @@
result = cper_section_pcie_to_ir(section, descriptor);
// if (guid_equal(&descriptor->SectionType, &gEfiFirmwareErrorSectionGuid))
// result = cper_section_firmware_error_to_ir(section);
- // if (guid_equal(&descriptor->SectionType, &gEfiPciBusErrorSectionGuid))
- // result = cper_section_pci_bus_to_ir(section);
+ else if (guid_equal(&descriptor->SectionType, &gEfiPciBusErrorSectionGuid))
+ result = cper_section_pci_bus_to_ir(section, descriptor);
// if (guid_equal(&descriptor->SectionType, &gEfiPciDevErrorSectionGuid))
// result = cper_section_pci_dev_to_ir(section);
// if (guid_equal(&descriptor->SectionType, &gEfiDMArGenericErrorSectionGuid))