libefivar: Fix incorrect check for DisplayOnly text format in AcpiEx

Text format for AcpiEx device path in UEFI Spec:
AcpiEx(HID,CID,UID,HIDSTR,CIDSTR,UIDSTR)
AcpiEx(HID|HIDSTR,(CID|CIDSTR,UID|UIDSTR))(Display Only)

When convert device path to text for AcpiEx device path,
current code check AllowShortcuts parameter to convert
the device path to DisplayOnly text format(shorter text
representation) by mistake.
It should check DisplayOnly parameter.

This commit is to fix this issue.

Upstream Bug:	https://bugzilla.tianocore.org/show_bug.cgi?id=1312
Obtained from:	e9ab1635a2
Pull Request:   https://github.com/freebsd/freebsd-src/pull/581
This commit is contained in:
Jose Luis Duran 2022-02-23 21:47:18 -03:00 committed by Warner Losh
parent 492d9953fa
commit c1fa6f4c5d

View File

@ -556,7 +556,7 @@ DevPathToTextAcpiEx (
);
}
} else {
if (AllowShortcuts) {
if (DisplayOnly) {
//
// display only
//