]> git.proxmox.com Git - mirror_edk2.git/commit - MdePkg/Library/UefiDevicePathLib/DevicePathToText.c
MdePkg: Handle AcpiExp device path when optional para is not specified
authorDandan Bi <dandan.bi@intel.com>
Fri, 12 Oct 2018 02:18:28 +0000 (10:18 +0800)
committerLiming Gao <liming.gao@intel.com>
Wed, 24 Oct 2018 14:15:57 +0000 (22:15 +0800)
commita8b5750901faa63ff5570634851e648b8e335e5a
tree25ac7b1518c4204f49ed086794361d0ec4ed6513
parent3874108034eb3f1d5d5180df33a5dfdd5fab5d25
MdePkg: Handle AcpiExp device path when optional para is not specified

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

AcpiExp text device path: AcpiExp(HID,CID,UIDSTR)
And according to UEFI spec, the CID parameter is optional
and has a default value of 0. But current implementation
miss to check following cases for the AcpiExp.
FromText:when text device is AcpiExp(HID,,UIDSTR)/AcpiExp(HID,0,UIDSTR)
ToText: when the CID is 0 in the node structure

This commit is to do the enhancement.

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: Ruiyu Ni <ruiyu.ni@intel.com>
MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c
MdePkg/Library/UefiDevicePathLib/DevicePathToText.c