mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
efi_loader: ACPI device node to text
The device path to text protocol renders ACPI device nodes incorrectly. Use capital hexadecimal numbers as shown in the UEFI spec examples. Always output the optional UID. This matches what UEFI SCT expects and saves us an `if`. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
3b985113be
commit
05fefe7681
1 changed files with 3 additions and 3 deletions
|
@ -78,9 +78,9 @@ static char *dp_acpi(char *s, struct efi_device_path *dp)
|
|||
case DEVICE_PATH_SUB_TYPE_ACPI_DEVICE: {
|
||||
struct efi_device_path_acpi_path *adp =
|
||||
(struct efi_device_path_acpi_path *)dp;
|
||||
s += sprintf(s, "Acpi(PNP%04x", EISA_PNP_NUM(adp->hid));
|
||||
if (adp->uid)
|
||||
s += sprintf(s, ",%d", adp->uid);
|
||||
|
||||
s += sprintf(s, "Acpi(PNP%04X", EISA_PNP_NUM(adp->hid));
|
||||
s += sprintf(s, ",%d", adp->uid);
|
||||
s += sprintf(s, ")");
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue