From 1ccdbf2a3e61fe9494fcd39432107ba0eb74f584 Mon Sep 17 00:00:00 2001 From: rsun3 Date: Tue, 19 Jan 2010 06:42:21 +0000 Subject: Improve coding style in MdeModulePkg. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9793 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Universal/Console/ConPlatformDxe/ConPlatform.c | 30 +++++++++++----------- .../Universal/Console/ConPlatformDxe/ConPlatform.h | 8 +++--- 2 files changed, 19 insertions(+), 19 deletions(-) (limited to 'MdeModulePkg/Universal/Console/ConPlatformDxe') diff --git a/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatform.c b/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatform.c index 9fccfc0cad..e40e2cc804 100644 --- a/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatform.c +++ b/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatform.c @@ -2,7 +2,7 @@ Console Platform DXE Driver, install Console Device Guids and update Console Environment Variables. -Copyright (c) 2006 - 2008, Intel Corporation.
+Copyright (c) 2006 - 2010, Intel Corporation.
All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -263,7 +263,7 @@ ConPlatformTextInDriverBindingStart ( Status = ConPlatformUpdateDeviceVariable ( L"ConIn", DevicePath, - CHECK + Check ); if (!EFI_ERROR (Status)) { IsInConInVariable = TRUE; @@ -289,7 +289,7 @@ ConPlatformTextInDriverBindingStart ( ConPlatformUpdateDeviceVariable ( L"ConInDev", DevicePath, - APPEND + Append ); } } else { @@ -300,7 +300,7 @@ ConPlatformTextInDriverBindingStart ( ConPlatformUpdateDeviceVariable ( L"ConInDev", DevicePath, - APPEND + Append ); // @@ -399,7 +399,7 @@ ConPlatformTextOutDriverBindingStart ( Status = ConPlatformUpdateDeviceVariable ( L"ConOut", DevicePath, - CHECK + Check ); if (!EFI_ERROR (Status)) { IsInConOutVariable = TRUE; @@ -409,7 +409,7 @@ ConPlatformTextOutDriverBindingStart ( Status = ConPlatformUpdateDeviceVariable ( L"ErrOut", DevicePath, - CHECK + Check ); if (!EFI_ERROR (Status)) { IsInErrOutVariable = TRUE; @@ -435,7 +435,7 @@ ConPlatformTextOutDriverBindingStart ( ConPlatformUpdateDeviceVariable ( L"ConOutDev", DevicePath, - APPEND + Append ); } // @@ -445,7 +445,7 @@ ConPlatformTextOutDriverBindingStart ( ConPlatformUpdateDeviceVariable ( L"ErrOutDev", DevicePath, - APPEND + Append ); } } else { @@ -456,7 +456,7 @@ ConPlatformTextOutDriverBindingStart ( ConPlatformUpdateDeviceVariable ( L"ConOutDev", DevicePath, - APPEND + Append ); // // Then append the device path to the ErrOutDev environment variable @@ -464,7 +464,7 @@ ConPlatformTextOutDriverBindingStart ( ConPlatformUpdateDeviceVariable ( L"ErrOutDev", DevicePath, - APPEND + Append ); // @@ -554,7 +554,7 @@ ConPlatformTextInDriverBindingStop ( ConPlatformUpdateDeviceVariable ( L"ConInDev", DevicePath, - DELETE + Delete ); } @@ -625,12 +625,12 @@ ConPlatformTextOutDriverBindingStop ( ConPlatformUpdateDeviceVariable ( L"ConOutDev", DevicePath, - DELETE + Delete ); ConPlatformUpdateDeviceVariable ( L"ErrOutDev", DevicePath, - DELETE + Delete ); } @@ -901,7 +901,7 @@ ConPlatformUpdateDeviceVariable ( // VariableDevicePath = ConPlatformGetVariable (VariableName); - if (Operation != DELETE) { + if (Operation != Delete) { // // Match specified DevicePath in Console Variable. // @@ -912,7 +912,7 @@ ConPlatformUpdateDeviceVariable ( FALSE ); - if ((Operation == CHECK) || (!EFI_ERROR (Status))) { + if ((Operation == Check) || (!EFI_ERROR (Status))) { // // Branch here includes 2 cases: // 1. Operation is CHECK, simply return Status. diff --git a/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatform.h b/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatform.h index 4787fc098d..46518154b0 100644 --- a/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatform.h +++ b/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatform.h @@ -1,7 +1,7 @@ /** @file Header file for Console Platfrom DXE Driver. -Copyright (c) 2006 - 2008, Intel Corporation.
+Copyright (c) 2006 - 2010, Intel Corporation.
All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -47,9 +47,9 @@ extern EFI_COMPONENT_NAME2_PROTOCOL gConPlatformComponentName2; typedef enum { - CHECK, - APPEND, - DELETE + Check, + Append, + Delete } CONPLATFORM_VAR_OPERATION; /** -- cgit v1.2.3