mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
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>
This commit is contained in:
parent
2b23b8d45b
commit
77f47588a7
OvmfPkg/Library/PlatformBootManagerLib
@ -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,
|
||||
|
@ -46,6 +46,7 @@
|
||||
DebugLib
|
||||
PcdLib
|
||||
UefiBootManagerLib
|
||||
DevicePathLib
|
||||
PciLib
|
||||
NvVarsFileLib
|
||||
QemuFwCfgLib
|
||||
|
Loading…
x
Reference in New Issue
Block a user