Add untested PCI/PCI-X dev record support.
diff --git a/cper-parse.c b/cper-parse.c
index 19316bc..7772131 100644
--- a/cper-parse.c
+++ b/cper-parse.c
@@ -16,6 +16,7 @@
#include "sections/cper-section-memory.h"
#include "sections/cper-section-pcie.h"
#include "sections/cper-section-pci-bus.h"
+#include "sections/cper-section-pci-dev.h"
//Private pre-definitions.
json_object* cper_header_to_ir(EFI_COMMON_ERROR_RECORD_HEADER* header);
@@ -319,8 +320,8 @@
// result = cper_section_firmware_error_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);
+ else if (guid_equal(&descriptor->SectionType, &gEfiPciDevErrorSectionGuid))
+ result = cper_section_pci_dev_to_ir(section, descriptor);
// if (guid_equal(&descriptor->SectionType, &gEfiDMArGenericErrorSectionGuid))
// result = cper_section_dmar_generic_to_ir(section);
// if (guid_equal(&descriptor->SectionType, &gEfiDirectedIoDMArErrorSectionGuid))