summaryrefslogtreecommitdiffstats
path: root/OvmfPkg
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2016-04-20 17:24:38 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2016-05-04 08:47:38 +0800
commit77f47588a76c4388dde1d5e3641d8c6eba794aff (patch)
treea8b9e5494e8a11f64a9dccddd480ae82247583ef /OvmfPkg
parent2b23b8d45b629886aaf477ae8a408624c3924c2b (diff)
downloadedk2-77f47588a76c4388dde1d5e3641d8c6eba794aff.tar.gz
edk2-77f47588a76c4388dde1d5e3641d8c6eba794aff.tar.bz2
edk2-77f47588a76c4388dde1d5e3641d8c6eba794aff.zip
OvmfPkg/PlatformBootManagerLib: Use ConvertDevicePathToText()
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>
Diffstat (limited to 'OvmfPkg')
-rw-r--r--OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c6
-rw-r--r--OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf1
2 files changed, 4 insertions, 3 deletions
diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
index ea0ae1ecd7..5c053ce99e 100644
--- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
+++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
@@ -251,7 +251,7 @@ Returns:
//
// Print Device Path
//
- DevPathStr = DevicePathToStr(DevicePath);
+ DevPathStr = ConvertDevicePathToText (DevicePath, FALSE, FALSE);
if (DevPathStr != NULL) {
DEBUG((
EFI_D_INFO,
@@ -280,7 +280,7 @@ Returns:
//
// Print Device Path
//
- DevPathStr = DevicePathToStr(DevicePath);
+ DevPathStr = ConvertDevicePathToText (DevicePath, FALSE, FALSE);
if (DevPathStr != NULL) {
DEBUG((
EFI_D_INFO,
@@ -991,7 +991,7 @@ ConnectRecursivelyIfPciMassStorage (
//
// Print Device Path
//
- DevPathStr = DevicePathToStr (DevicePath);
+ DevPathStr = ConvertDevicePathToText (DevicePath, FALSE, FALSE);
if (DevPathStr != NULL) {
DEBUG((
EFI_D_INFO,
diff --git a/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf b/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
index 2bb43d08a4..15f9c735a6 100644
--- a/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
+++ b/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
@@ -46,6 +46,7 @@
DebugLib
PcdLib
UefiBootManagerLib
+ DevicePathLib
PciLib
NvVarsFileLib
QemuFwCfgLib