libefivar: Correct the string order of ACPI Expanded Device Path
According to UEFI Spec, ACPI Expanded Device Path can be display
AcpiEx(HID|HIDSTR,(CID|CIDSTR,UID|UIDSTR)), but current code display
UID|UIDSTR before CID|CIDSTR.
This patch is to fix this issue.
Upstream Bug: https://bugzilla.tianocore.org/show_bug.cgi?id=1227
Obtained from: 05fe752589
Pull Request: https://github.com/freebsd/freebsd-src/pull/581
This commit is contained in:
parent
49951297d2
commit
8278071ae1
@ -536,16 +536,16 @@ DevPathToTextAcpiEx (
|
|||||||
UefiDevicePathLibCatPrint (Str, "AcpiEx(%s,", HIDText);
|
UefiDevicePathLibCatPrint (Str, "AcpiEx(%s,", HIDText);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (AcpiEx->UID == 0) {
|
if (AcpiEx->CID == 0) {
|
||||||
UefiDevicePathLibCatPrint (Str, "%s,", UIDStr);
|
UefiDevicePathLibCatPrint (Str, "%s,", CIDStr);
|
||||||
} else {
|
} else {
|
||||||
UefiDevicePathLibCatPrint (Str, "0x%x,", AcpiEx->UID);
|
UefiDevicePathLibCatPrint (Str, "%s,", CIDText);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (AcpiEx->CID == 0) {
|
if (AcpiEx->UID == 0) {
|
||||||
UefiDevicePathLibCatPrint (Str, "%s)", CIDStr);
|
UefiDevicePathLibCatPrint (Str, "%s)", UIDStr);
|
||||||
} else {
|
} else {
|
||||||
UefiDevicePathLibCatPrint (Str, "%s)", CIDText);
|
UefiDevicePathLibCatPrint (Str, "0x%x)", AcpiEx->UID);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
UefiDevicePathLibCatPrint (
|
UefiDevicePathLibCatPrint (
|
||||||
|
Loading…
Reference in New Issue
Block a user