summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/UefiDevicePathLib
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2018-11-08 21:33:53 +0800
committerLiming Gao <liming.gao@intel.com>2018-11-11 11:41:04 +0800
commite9ab1635a2cfa1cb588996dcd5cc157fb44decb1 (patch)
tree34b5ee8b23b5ebdf945e92a025ab2c8bfb6f3f51 /MdePkg/Library/UefiDevicePathLib
parent9bae7811d9433a4bb7123c6eca5c2995877360f1 (diff)
downloadedk2-e9ab1635a2cfa1cb588996dcd5cc157fb44decb1.tar.gz
edk2-e9ab1635a2cfa1cb588996dcd5cc157fb44decb1.tar.bz2
edk2-e9ab1635a2cfa1cb588996dcd5cc157fb44decb1.zip
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>
Diffstat (limited to 'MdePkg/Library/UefiDevicePathLib')
-rw-r--r--MdePkg/Library/UefiDevicePathLib/DevicePathToText.c2
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
//