Fix several bugs in DevicePathLib implementation regarding the device path node and text conversion.
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14827 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -990,22 +990,13 @@ DevPathToTextSata (
|
||||
SATA_DEVICE_PATH *Sata;
|
||||
|
||||
Sata = DevPath;
|
||||
if ((Sata->PortMultiplierPortNumber & SATA_HBA_DIRECT_CONNECT_FLAG) != 0) {
|
||||
UefiDevicePathLibCatPrint (
|
||||
Str,
|
||||
L"Sata(0x%x,0x%x)",
|
||||
Sata->HBAPortNumber,
|
||||
Sata->Lun
|
||||
);
|
||||
} else {
|
||||
UefiDevicePathLibCatPrint (
|
||||
Str,
|
||||
L"Sata(0x%x,0x%x,0x%x)",
|
||||
Sata->HBAPortNumber,
|
||||
Sata->PortMultiplierPortNumber,
|
||||
Sata->Lun
|
||||
);
|
||||
}
|
||||
UefiDevicePathLibCatPrint (
|
||||
Str,
|
||||
L"Sata(0x%x,0x%x,0x%x)",
|
||||
Sata->HBAPortNumber,
|
||||
Sata->PortMultiplierPortNumber,
|
||||
Sata->Lun
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user