mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-30 00:54:06 +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
@ -251,7 +251,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Print Device Path
|
// Print Device Path
|
||||||
//
|
//
|
||||||
DevPathStr = DevicePathToStr(DevicePath);
|
DevPathStr = ConvertDevicePathToText (DevicePath, FALSE, FALSE);
|
||||||
if (DevPathStr != NULL) {
|
if (DevPathStr != NULL) {
|
||||||
DEBUG((
|
DEBUG((
|
||||||
EFI_D_INFO,
|
EFI_D_INFO,
|
||||||
@ -280,7 +280,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Print Device Path
|
// Print Device Path
|
||||||
//
|
//
|
||||||
DevPathStr = DevicePathToStr(DevicePath);
|
DevPathStr = ConvertDevicePathToText (DevicePath, FALSE, FALSE);
|
||||||
if (DevPathStr != NULL) {
|
if (DevPathStr != NULL) {
|
||||||
DEBUG((
|
DEBUG((
|
||||||
EFI_D_INFO,
|
EFI_D_INFO,
|
||||||
@ -991,7 +991,7 @@ ConnectRecursivelyIfPciMassStorage (
|
|||||||
//
|
//
|
||||||
// Print Device Path
|
// Print Device Path
|
||||||
//
|
//
|
||||||
DevPathStr = DevicePathToStr (DevicePath);
|
DevPathStr = ConvertDevicePathToText (DevicePath, FALSE, FALSE);
|
||||||
if (DevPathStr != NULL) {
|
if (DevPathStr != NULL) {
|
||||||
DEBUG((
|
DEBUG((
|
||||||
EFI_D_INFO,
|
EFI_D_INFO,
|
||||||
|
@ -46,6 +46,7 @@
|
|||||||
DebugLib
|
DebugLib
|
||||||
PcdLib
|
PcdLib
|
||||||
UefiBootManagerLib
|
UefiBootManagerLib
|
||||||
|
DevicePathLib
|
||||||
PciLib
|
PciLib
|
||||||
NvVarsFileLib
|
NvVarsFileLib
|
||||||
QemuFwCfgLib
|
QemuFwCfgLib
|
||||||
|
Loading…
x
Reference in New Issue
Block a user