The DevicePathToStr() function (in
"IntelFrameworkModulePkg/Library/GenericBdsLib/DevicePath.c") is a
simple wrapper around ConvertDevicePathToText().
DevicePathToStr() passes DisplayOnly=TRUE and AllowShortcuts=TRUE to
ConvertDevicePathToText(), whereas in this patch, both parameters are
flipped to FALSE.
The formatted devpaths are used only for debugging purposes, so this
change is safe.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
//\r
// Print Device Path\r
//\r
- DevPathStr = DevicePathToStr(DevicePath);\r
+ DevPathStr = ConvertDevicePathToText (DevicePath, FALSE, FALSE);\r
if (DevPathStr != NULL) {\r
DEBUG((\r
EFI_D_INFO,\r
//\r
// Print Device Path\r
//\r
- DevPathStr = DevicePathToStr(DevicePath);\r
+ DevPathStr = ConvertDevicePathToText (DevicePath, FALSE, FALSE);\r
if (DevPathStr != NULL) {\r
DEBUG((\r
EFI_D_INFO,\r
//\r
// Print Device Path\r
//\r
- DevPathStr = DevicePathToStr (DevicePath);\r
+ DevPathStr = ConvertDevicePathToText (DevicePath, FALSE, FALSE);\r
if (DevPathStr != NULL) {\r
DEBUG((\r
EFI_D_INFO,\r
DebugLib\r
PcdLib\r
UefiBootManagerLib\r
+ DevicePathLib\r
PciLib\r
NvVarsFileLib\r
QemuFwCfgLib\r