Coding style checked

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7458 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jji4 2009-02-06 05:48:16 +00:00
parent d59b8b55d7
commit 7ae9c1ce8f
2 changed files with 9 additions and 9 deletions

View File

@ -2765,7 +2765,7 @@ ConvertTextToDeviceNode (
DeviceNodeStr = StrDuplicate (TextDeviceNode); DeviceNodeStr = StrDuplicate (TextDeviceNode);
ASSERT (DeviceNodeStr != NULL); ASSERT (DeviceNodeStr != NULL);
for (Index = 0; DevPathFromTextTable[Index].Function; Index++) { for (Index = 0; DevPathFromTextTable[Index].Function != NULL; Index++) {
ParamStr = GetParamByNodeName (DeviceNodeStr, DevPathFromTextTable[Index].DevicePathNodeText); ParamStr = GetParamByNodeName (DeviceNodeStr, DevPathFromTextTable[Index].DevicePathNodeText);
if (ParamStr != NULL) { if (ParamStr != NULL) {
DumpNode = DevPathFromTextTable[Index].Function; DumpNode = DevPathFromTextTable[Index].Function;
@ -2833,7 +2833,7 @@ ConvertTextToDevicePath (
Str = DevicePathStr; Str = DevicePathStr;
while ((DeviceNodeStr = GetNextDeviceNodeStr (&Str, &IsInstanceEnd)) != NULL) { while ((DeviceNodeStr = GetNextDeviceNodeStr (&Str, &IsInstanceEnd)) != NULL) {
DumpNode = NULL; DumpNode = NULL;
for (Index = 0; DevPathFromTextTable[Index].Function; Index++) { for (Index = 0; DevPathFromTextTable[Index].Function != NULL; Index++) {
ParamStr = GetParamByNodeName (DeviceNodeStr, DevPathFromTextTable[Index].DevicePathNodeText); ParamStr = GetParamByNodeName (DeviceNodeStr, DevPathFromTextTable[Index].DevicePathNodeText);
if (ParamStr != NULL) { if (ParamStr != NULL) {
DumpNode = DevPathFromTextTable[Index].Function; DumpNode = DevPathFromTextTable[Index].Function;

View File

@ -555,8 +555,8 @@ DevPathToTextAtapi (
CatPrint ( CatPrint (
Str, Str,
L"Ata(%s,%s,0x%x)", L"Ata(%s,%s,0x%x)",
Atapi->PrimarySecondary ? L"Secondary" : L"Primary", (Atapi->PrimarySecondary == 1) ? L"Secondary" : L"Primary",
Atapi->SlaveMaster ? L"Slave" : L"Master", (Atapi->SlaveMaster == 1) ? L"Slave" : L"Master",
Atapi->Lun Atapi->Lun
); );
} }
@ -1030,8 +1030,8 @@ DevPathToTextIPv4 (
IPDevPath->RemoteIpAddress.Addr[1], IPDevPath->RemoteIpAddress.Addr[1],
IPDevPath->RemoteIpAddress.Addr[2], IPDevPath->RemoteIpAddress.Addr[2],
IPDevPath->RemoteIpAddress.Addr[3], IPDevPath->RemoteIpAddress.Addr[3],
IPDevPath->Protocol ? L"TCP" : L"UDP", (IPDevPath->Protocol == 1) ? L"TCP" : L"UDP",
(IPDevPath->StaticIpAddress == TRUE) ? L"Static" : L"DHCP", IPDevPath->StaticIpAddress ? L"Static" : L"DHCP",
IPDevPath->LocalIpAddress.Addr[0], IPDevPath->LocalIpAddress.Addr[0],
IPDevPath->LocalIpAddress.Addr[1], IPDevPath->LocalIpAddress.Addr[1],
IPDevPath->LocalIpAddress.Addr[2], IPDevPath->LocalIpAddress.Addr[2],
@ -1106,8 +1106,8 @@ DevPathToTextIPv6 (
IPDevPath->RemoteIpAddress.Addr[13], IPDevPath->RemoteIpAddress.Addr[13],
IPDevPath->RemoteIpAddress.Addr[14], IPDevPath->RemoteIpAddress.Addr[14],
IPDevPath->RemoteIpAddress.Addr[15], IPDevPath->RemoteIpAddress.Addr[15],
IPDevPath->Protocol ? L"TCP" : L"UDP", (IPDevPath->Protocol == 1) ? L"TCP" : L"UDP",
(IPDevPath->StaticIpAddress == TRUE) ? L"Static" : L"DHCP", IPDevPath->StaticIpAddress ? L"Static" : L"DHCP",
IPDevPath->LocalIpAddress.Addr[0], IPDevPath->LocalIpAddress.Addr[0],
IPDevPath->LocalIpAddress.Addr[1], IPDevPath->LocalIpAddress.Addr[1],
IPDevPath->LocalIpAddress.Addr[2], IPDevPath->LocalIpAddress.Addr[2],
@ -1769,7 +1769,7 @@ ConvertDevicePathToText (
// 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; DevPathToTextTable[Index].Function; Index += 1) { for (Index = 0; DevPathToTextTable[Index].Function != NULL; Index += 1) {
if (DevicePathType (DevPathNode) == DevPathToTextTable[Index].Type && if (DevicePathType (DevPathNode) == DevPathToTextTable[Index].Type &&
DevicePathSubType (DevPathNode) == DevPathToTextTable[Index].SubType DevicePathSubType (DevPathNode) == DevPathToTextTable[Index].SubType