]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/PlatformBootManagerLib: Use ConvertDevicePathToText()
authorRuiyu Ni <ruiyu.ni@intel.com>
Wed, 20 Apr 2016 09:24:38 +0000 (17:24 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Wed, 4 May 2016 00:47:38 +0000 (08:47 +0800)
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>
OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf

index ea0ae1ecd70ff02ed09bf65b6b599f331b30b581..5c053ce99eab35d7e648e76872f14b1640c16222 100644 (file)
@@ -251,7 +251,7 @@ Returns:
   //\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
@@ -280,7 +280,7 @@ Returns:
   //\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
@@ -991,7 +991,7 @@ ConnectRecursivelyIfPciMassStorage (
     //\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
index 2bb43d08a4d519f3bf5a5e1088132b8cfcdf965c..15f9c735a6cd85bc5ad8337cd8a7642c47f737fd 100644 (file)
@@ -46,6 +46,7 @@
   DebugLib\r
   PcdLib\r
   UefiBootManagerLib\r
+  DevicePathLib\r
   PciLib\r
   NvVarsFileLib\r
   QemuFwCfgLib\r