]> git.proxmox.com Git - mirror_edk2.git/commit - MdePkg/Library/UefiDevicePathLib/DevicePathToText.c
MdePkg: Correct condition check for AcpiExp text format
authorDandan Bi <dandan.bi@intel.com>
Fri, 5 Oct 2018 06:35:25 +0000 (14:35 +0800)
committerLiming Gao <liming.gao@intel.com>
Tue, 9 Oct 2018 14:20:19 +0000 (22:20 +0800)
commitfb4bea551e5b7e16e54676bca3d1ccde65f57c77
tree2634a365fab2a2a7f4a3420bba07fbbf61af5300
parent05fe7525896cee197cfed98154955dbaa60d6357
MdePkg: Correct condition check for AcpiExp text format

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1226

According to UEFI Spec, for ACPI Expanded Device Path,
when HIDSTR=empty, CIDSTR=empty, UID STR!=empty,
the ACPI Expanded Device Path node can be displayed as
AcpiExp(HID,CID,UIDSTR) format.
And if UID is 0 and UIDSTR is empty, then use AcpiEx format.

This patch is to correct the condition check to follow UEFI
Spec when convert the device path node to the AcpiExp text
format.

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.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
MdePkg/Library/UefiDevicePathLib/DevicePathToText.c