OSDN Git Service

dp-acpi: fix HID vs HID_EX formatting bug.
authorPeter Jones <pjones@redhat.com>
Mon, 1 Oct 2018 18:27:04 +0000 (14:27 -0400)
committerPeter Jones <pjones@redhat.com>
Mon, 1 Oct 2018 18:27:04 +0000 (14:27 -0400)
Signed-off-by: Peter Jones <pjones@redhat.com>
src/dp-acpi.c

index 6f3e944..019f910 100644 (file)
@@ -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;