summaryrefslogtreecommitdiffstats
path: root/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2018-06-27 21:06:35 +0800
committerLiming Gao <liming.gao@intel.com>2018-06-28 11:19:42 +0800
commit0a6f48249a601f88af124ae1ff6814b195b699c3 (patch)
tree3a34c1419088429ccbd90df0963aca33fcd57cee /IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c
parente38f26a2f7f62b69fec2d84e83bcc4b45ddefdc1 (diff)
downloadedk2-0a6f48249a601f88af124ae1ff6814b195b699c3.tar.gz
edk2-0a6f48249a601f88af124ae1ff6814b195b699c3.tar.bz2
edk2-0a6f48249a601f88af124ae1ff6814b195b699c3.zip
IntelFrameworkModulePkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c')
-rw-r--r--IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c
index 9c21cfcd59..167ad69c64 100644
--- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c
+++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c
@@ -19,7 +19,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Check if we need to save the EFI variable with "ConVarName" as name
as NV type
If ConVarName is NULL, then ASSERT().
-
+
@param ConVarName The name of the EFI variable.
@retval TRUE Set the EFI variable as NV type.
@@ -33,7 +33,7 @@ IsNvNeed (
CHAR16 *Ptr;
ASSERT (ConVarName != NULL);
-
+
Ptr = ConVarName;
//
@@ -47,7 +47,7 @@ IsNvNeed (
if (((INTN)((UINTN)Ptr - (UINTN)ConVarName) / sizeof (CHAR16)) <= 3) {
return TRUE;
}
-
+
if ((*(Ptr - 3) == 'D') && (*(Ptr - 2) == 'e') && (*(Ptr - 1) == 'v')) {
return FALSE;
} else {
@@ -59,20 +59,20 @@ IsNvNeed (
Fill console handle in System Table if there are no valid console handle in.
Firstly, check the validation of console handle in System Table. If it is invalid,
- update it by the first console device handle from EFI console variable.
+ update it by the first console device handle from EFI console variable.
@param VarName The name of the EFI console variable.
@param ConsoleGuid Specified Console protocol GUID.
- @param ConsoleHandle On IN, console handle in System Table to be checked.
+ @param ConsoleHandle On IN, console handle in System Table to be checked.
On OUT, new console handle in system table.
- @param ProtocolInterface On IN, console protocol on console handle in System Table to be checked.
+ @param ProtocolInterface On IN, console protocol on console handle in System Table to be checked.
On OUT, new console protocol on new console handle in system table.
@retval TRUE System Table has been updated.
@retval FALSE System Table hasn't been updated.
**/
-BOOLEAN
+BOOLEAN
UpdateSystemTableConsole (
IN CHAR16 *VarName,
IN EFI_GUID *ConsoleGuid,
@@ -108,7 +108,7 @@ UpdateSystemTableConsole (
return FALSE;
}
}
-
+
//
// Get all possible consoles device path from EFI variable
//
@@ -135,7 +135,7 @@ UpdateSystemTableConsole (
FreePool (FullDevicePath);
ASSERT (FALSE);
}
-
+
//
// Find console device handle by device path instance
//
@@ -371,7 +371,7 @@ BdsLibConnectConsoleVariable (
FreePool (StartDevicePath);
return EFI_UNSUPPORTED;
}
-
+
Next = Instance;
while (!IsDevicePathEndType (Next)) {
Next = NextDevicePathNode (Next);
@@ -380,7 +380,7 @@ BdsLibConnectConsoleVariable (
SetDevicePathEndNode (Next);
//
// Connect the USB console
- // USB console device path is a short-form device path that
+ // USB console device path is a short-form device path that
// starts with the first element being a USB WWID
// or a USB Class device path
//
@@ -791,7 +791,7 @@ EnableQuietBoot (
Attribute = EfiBadgingDisplayAttributeCenter;
} else {
Attribute = EfiBadgingDisplayAttributeCustomized;
- }
+ }
}
if (Blt != NULL) {
@@ -968,7 +968,7 @@ Done:
Status = EFI_SUCCESS;
} else {
//
- // More than one Logo displayed, get merged BltBuffer using VideoToBuffer operation.
+ // More than one Logo displayed, get merged BltBuffer using VideoToBuffer operation.
//
if (Blt != NULL) {
FreePool (Blt);
@@ -1034,7 +1034,7 @@ Done:
}
/**
- Use SystemTable Conout to turn on video based Simple Text Out consoles. The
+ Use SystemTable Conout to turn on video based Simple Text Out consoles. The
Simple Text Out screens will now be synced up with all non video output devices
@retval EFI_SUCCESS UGA devices are back in text mode and synced up.