CatPrint (\r
Str,\r
L"Ata(%s,%s)",\r
- Atapi->PrimarySecondary ? L"Secondary" : L"Primary",\r
- Atapi->SlaveMaster ? L"Slave" : L"Master"\r
+ (Atapi->PrimarySecondary != 0)? L"Secondary" : L"Primary",\r
+ (Atapi->SlaveMaster != 0)? L"Slave" : L"Master"\r
);\r
}\r
\r
SATA_DEVICE_PATH *Sata;\r
\r
Sata = DevPath;\r
- if (Sata->PortMultiplierPortNumber & SATA_HBA_DIRECT_CONNECT_FLAG) {\r
+ if ((Sata->PortMultiplierPortNumber & SATA_HBA_DIRECT_CONNECT_FLAG) != 0) {\r
CatPrint (\r
Str,\r
L"Sata(%x,%x)",\r
// Find the handler to dump this device path node\r
//\r
DumpNode = NULL;\r
- for (Index = 0; DevPathTable[Index].Function; Index += 1) {\r
+ for (Index = 0; DevPathTable[Index].Function != NULL; Index += 1) {\r
\r
if (DevicePathType (DevPathNode) == DevPathTable[Index].Type &&\r
DevicePathSubType (DevPathNode) == DevPathTable[Index].SubType\r
//\r
// Put a path seperator in if needed\r
//\r
- if (Str.Len && DumpNode != DevPathEndInstance) {\r
+ if ((Str.Len != 0) && (DumpNode != DevPathEndInstance)) {\r
CatPrint (&Str, L"/");\r
}\r
//\r