Should not use integer as boolean value for judgment.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8684 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -487,8 +487,8 @@ DevPathAtapi (
|
|||||||
CatPrint (
|
CatPrint (
|
||||||
Str,
|
Str,
|
||||||
L"Ata(%s,%s)",
|
L"Ata(%s,%s)",
|
||||||
Atapi->PrimarySecondary ? L"Secondary" : L"Primary",
|
(Atapi->PrimarySecondary != 0)? L"Secondary" : L"Primary",
|
||||||
Atapi->SlaveMaster ? L"Slave" : L"Master"
|
(Atapi->SlaveMaster != 0)? L"Slave" : L"Master"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -679,7 +679,7 @@ DevPathSata (
|
|||||||
SATA_DEVICE_PATH *Sata;
|
SATA_DEVICE_PATH *Sata;
|
||||||
|
|
||||||
Sata = DevPath;
|
Sata = DevPath;
|
||||||
if (Sata->PortMultiplierPortNumber & SATA_HBA_DIRECT_CONNECT_FLAG) {
|
if ((Sata->PortMultiplierPortNumber & SATA_HBA_DIRECT_CONNECT_FLAG) != 0) {
|
||||||
CatPrint (
|
CatPrint (
|
||||||
Str,
|
Str,
|
||||||
L"Sata(%x,%x)",
|
L"Sata(%x,%x)",
|
||||||
@ -1503,7 +1503,7 @@ DevicePathToStr (
|
|||||||
// Find the handler to dump this device path node
|
// Find the handler to dump this device path node
|
||||||
//
|
//
|
||||||
DumpNode = NULL;
|
DumpNode = NULL;
|
||||||
for (Index = 0; DevPathTable[Index].Function; Index += 1) {
|
for (Index = 0; DevPathTable[Index].Function != NULL; Index += 1) {
|
||||||
|
|
||||||
if (DevicePathType (DevPathNode) == DevPathTable[Index].Type &&
|
if (DevicePathType (DevPathNode) == DevPathTable[Index].Type &&
|
||||||
DevicePathSubType (DevPathNode) == DevPathTable[Index].SubType
|
DevicePathSubType (DevPathNode) == DevPathTable[Index].SubType
|
||||||
@ -1521,7 +1521,7 @@ DevicePathToStr (
|
|||||||
//
|
//
|
||||||
// Put a path seperator in if needed
|
// Put a path seperator in if needed
|
||||||
//
|
//
|
||||||
if (Str.Len && DumpNode != DevPathEndInstance) {
|
if ((Str.Len != 0) && (DumpNode != DevPathEndInstance)) {
|
||||||
CatPrint (&Str, L"/");
|
CatPrint (&Str, L"/");
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user