]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatform.c
Improve coding style in MdeModulePkg.
[mirror_edk2.git] / MdeModulePkg / Universal / Console / ConPlatformDxe / ConPlatform.c
index 9fccfc0cad81b174ceb84c500a0cf3174020263e..e40e2cc804ea6bcea4e6e34679a9b7ed427c0e10 100644 (file)
@@ -2,7 +2,7 @@
   Console Platform DXE Driver, install Console Device Guids and update Console\r
   Environment Variables.\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+Copyright (c) 2006 - 2010, Intel Corporation. <BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -263,7 +263,7 @@ ConPlatformTextInDriverBindingStart (
   Status = ConPlatformUpdateDeviceVariable (\r
              L"ConIn",\r
              DevicePath,\r
-             CHECK\r
+             Check\r
              );\r
   if (!EFI_ERROR (Status)) {\r
     IsInConInVariable = TRUE;\r
@@ -289,7 +289,7 @@ ConPlatformTextInDriverBindingStart (
       ConPlatformUpdateDeviceVariable (\r
         L"ConInDev",\r
         DevicePath,\r
-        APPEND\r
+        Append\r
         );\r
     }\r
   } else {\r
@@ -300,7 +300,7 @@ ConPlatformTextInDriverBindingStart (
     ConPlatformUpdateDeviceVariable (\r
       L"ConInDev",\r
       DevicePath,\r
-      APPEND\r
+      Append\r
       );\r
 \r
     //\r
@@ -399,7 +399,7 @@ ConPlatformTextOutDriverBindingStart (
   Status = ConPlatformUpdateDeviceVariable (\r
              L"ConOut",\r
              DevicePath,\r
-             CHECK\r
+             Check\r
              );\r
   if (!EFI_ERROR (Status)) {\r
     IsInConOutVariable = TRUE;\r
@@ -409,7 +409,7 @@ ConPlatformTextOutDriverBindingStart (
   Status = ConPlatformUpdateDeviceVariable (\r
              L"ErrOut",\r
              DevicePath,\r
-             CHECK\r
+             Check\r
              );\r
   if (!EFI_ERROR (Status)) {\r
     IsInErrOutVariable = TRUE;\r
@@ -435,7 +435,7 @@ ConPlatformTextOutDriverBindingStart (
       ConPlatformUpdateDeviceVariable (\r
         L"ConOutDev",\r
         DevicePath,\r
-        APPEND\r
+        Append\r
         );\r
     }\r
     //\r
@@ -445,7 +445,7 @@ ConPlatformTextOutDriverBindingStart (
       ConPlatformUpdateDeviceVariable (\r
         L"ErrOutDev",\r
         DevicePath,\r
-        APPEND\r
+        Append\r
         );\r
     }\r
   } else {\r
@@ -456,7 +456,7 @@ ConPlatformTextOutDriverBindingStart (
     ConPlatformUpdateDeviceVariable (\r
       L"ConOutDev",\r
       DevicePath,\r
-      APPEND\r
+      Append\r
       );\r
     //\r
     // Then append the device path to the ErrOutDev environment variable\r
@@ -464,7 +464,7 @@ ConPlatformTextOutDriverBindingStart (
     ConPlatformUpdateDeviceVariable (\r
       L"ErrOutDev",\r
       DevicePath,\r
-      APPEND\r
+      Append\r
       );\r
 \r
     //\r
@@ -554,7 +554,7 @@ ConPlatformTextInDriverBindingStop (
     ConPlatformUpdateDeviceVariable (\r
       L"ConInDev",\r
       DevicePath,\r
-      DELETE\r
+      Delete\r
       );\r
   }\r
 \r
@@ -625,12 +625,12 @@ ConPlatformTextOutDriverBindingStop (
     ConPlatformUpdateDeviceVariable (\r
       L"ConOutDev",\r
       DevicePath,\r
-      DELETE\r
+      Delete\r
       );\r
     ConPlatformUpdateDeviceVariable (\r
       L"ErrOutDev",\r
       DevicePath,\r
-      DELETE\r
+      Delete\r
       );\r
   }\r
 \r
@@ -901,7 +901,7 @@ ConPlatformUpdateDeviceVariable (
   //\r
   VariableDevicePath = ConPlatformGetVariable (VariableName);\r
 \r
-  if (Operation != DELETE) {\r
+  if (Operation != Delete) {\r
     //\r
     // Match specified DevicePath in Console Variable.\r
     // \r
@@ -912,7 +912,7 @@ ConPlatformUpdateDeviceVariable (
                FALSE\r
                );\r
 \r
-    if ((Operation == CHECK) || (!EFI_ERROR (Status))) {\r
+    if ((Operation == Check) || (!EFI_ERROR (Status))) {\r
       //\r
       // Branch here includes 2 cases:\r
       // 1. Operation is CHECK, simply return Status.\r