From ebc0b14923faa8da19dbdc2501a6fef0728906a1 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Mon, 1 Oct 2018 14:27:04 -0400 Subject: [PATCH 36/39] dp-acpi: fix HID vs HID_EX formatting bug. Signed-off-by: Peter Jones --- src/dp-acpi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dp-acpi.c b/src/dp-acpi.c index 6f3e94443e5..019f910c164 100644 --- a/src/dp-acpi.c +++ b/src/dp-acpi.c @@ -157,7 +157,9 @@ _format_acpi_dn(char *buf, size_t size, const_efidp dp) return off; } } - } else if (dp->subtype == EFIDP_ACPI_HID_EX) { + } else if (dp->subtype == EFIDP_ACPI_HID) { + debug("formatting ACPI HID 0x%08x", dp->acpi_hid.hid); + switch (dp->acpi_hid.hid) { case EFIDP_ACPI_PCI_ROOT_HID: format(buf, size, off, "PciRoot", @@ -249,6 +251,9 @@ _format_acpi_dn(char *buf, size_t size, const_efidp dp) return -1; } } + } else { + debug("Unknown ACPI device path type {0x%04hhx,0x%04hhx}", + dp->type, dp->subtype); } return off; -- 2.17.1