diff options
author | Dandan Bi <dandan.bi@intel.com> | 2018-11-08 21:33:53 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2018-11-11 11:41:04 +0800 |
commit | e9ab1635a2cfa1cb588996dcd5cc157fb44decb1 (patch) | |
tree | 34b5ee8b23b5ebdf945e92a025ab2c8bfb6f3f51 | |
parent | 9bae7811d9433a4bb7123c6eca5c2995877360f1 (diff) | |
download | edk2-e9ab1635a2cfa1cb588996dcd5cc157fb44decb1.tar.gz |
MdePkg: Fix incorrect check for DisplayOnly text format in AcpiEx
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1312
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.
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
-rw-r--r-- | MdePkg/Library/UefiDevicePathLib/DevicePathToText.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Library/UefiDevicePathLib/DevicePathToText.c b/MdePkg/Library/UefiDevicePathLib/DevicePathToText.c index cdcdb3623a..97d279eeb2 100644 --- a/MdePkg/Library/UefiDevicePathLib/DevicePathToText.c +++ b/MdePkg/Library/UefiDevicePathLib/DevicePathToText.c @@ -497,7 +497,7 @@ DevPathToTextAcpiEx ( );
}
} else {
- if (AllowShortcuts) {
+ if (DisplayOnly) {
//
// display only
//
|