diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-04-20 17:24:38 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-05-04 08:47:38 +0800 |
commit | 77f47588a76c4388dde1d5e3641d8c6eba794aff (patch) | |
tree | a8b9e5494e8a11f64a9dccddd480ae82247583ef | |
parent | 2b23b8d45b629886aaf477ae8a408624c3924c2b (diff) | |
download | edk2-77f47588a76c4388dde1d5e3641d8c6eba794aff.zip edk2-77f47588a76c4388dde1d5e3641d8c6eba794aff.tar.gz edk2-77f47588a76c4388dde1d5e3641d8c6eba794aff.tar.bz2 |
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>
-rw-r--r-- | OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 6 | ||||
-rw-r--r-- | OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c index ea0ae1e..5c053ce 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 2bb43d0..15f9c73 100644 --- a/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf +++ b/OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf @@ -46,6 +46,7 @@ DebugLib
PcdLib
UefiBootManagerLib
+ DevicePathLib
PciLib
NvVarsFileLib
QemuFwCfgLib
|