diff options
author | Liming Gao <liming.gao@intel.com> | 2018-06-27 21:13:38 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2018-06-28 11:19:51 +0800 |
commit | ba0014b9f8ae1a593f03e744f26008214c2b06a8 (patch) | |
tree | d40c0369fe53be8bd4a8c5595b773ec1bf3cf884 /ShellPkg/Library/UefiShellCommandLib | |
parent | 24bfed691d9b581830933623204b56a704d1abd2 (diff) | |
download | edk2-ba0014b9f8ae1a593f03e744f26008214c2b06a8.tar.gz edk2-ba0014b9f8ae1a593f03e744f26008214c2b06a8.tar.bz2 edk2-ba0014b9f8ae1a593f03e744f26008214c2b06a8.zip |
ShellPkg: 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>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Diffstat (limited to 'ShellPkg/Library/UefiShellCommandLib')
-rwxr-xr-x | ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c | 20 | ||||
-rw-r--r-- | ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c | 14 |
2 files changed, 17 insertions, 17 deletions
diff --git a/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c b/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c index 3b13e62340..96a944104e 100755 --- a/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c +++ b/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c @@ -1,7 +1,7 @@ /** @file
Main file for support of shell consist mapping.
- Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>
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
@@ -56,10 +56,10 @@ typedef struct { @retval EFI_OUT_OF_RESOURCES Out of resources.
@retval EFI_SUCCESS The appending was successful.
**/
-typedef
-EFI_STATUS
+typedef
+EFI_STATUS
(*SERIAL_DECODE_FUNCTION) (
- EFI_DEVICE_PATH_PROTOCOL *DevPath,
+ EFI_DEVICE_PATH_PROTOCOL *DevPath,
DEVICE_CONSIST_MAPPING_INFO *MapInfo,
EFI_DEVICE_PATH_PROTOCOL *OrigDevPath
);
@@ -640,7 +640,7 @@ DevPathSerialUsb ( UsbIo = NULL;
if (!EFI_ERROR(Status)) {
Status = gBS->OpenProtocol(TempHandle, &gEfiUsbIoProtocolGuid, (VOID**)&UsbIo, gImageHandle, NULL, EFI_OPEN_PROTOCOL_GET_PROTOCOL);
- }
+ }
if (!EFI_ERROR(Status)) {
ASSERT(UsbIo != NULL);
@@ -661,7 +661,7 @@ DevPathSerialUsb ( }
}
}
- }
+ }
}
return Status;
}
@@ -1520,13 +1520,13 @@ ShellCommandConsistMappingInitialize ( continue;
}
- Status = gBS->HandleProtocol( HandleBuffer[HandleLoop],
- &gEfiBlockIoProtocolGuid,
+ Status = gBS->HandleProtocol( HandleBuffer[HandleLoop],
+ &gEfiBlockIoProtocolGuid,
(VOID **)&BlockIo
);
if (EFI_ERROR(Status)) {
- Status = gBS->HandleProtocol( HandleBuffer[HandleLoop],
- &gEfiSimpleFileSystemProtocolGuid,
+ Status = gBS->HandleProtocol( HandleBuffer[HandleLoop],
+ &gEfiSimpleFileSystemProtocolGuid,
(VOID **)&SimpleFileSystem
);
if (EFI_ERROR(Status)) {
diff --git a/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c b/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c index 0df252b420..ddc4bb1567 100644 --- a/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c +++ b/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c @@ -79,7 +79,7 @@ CommandInit( UINTN Index;
EFI_STATUS Status;
CHAR8 *PlatformLang;
-
+
GetEfiGlobalVariable2 (EFI_PLATFORM_LANG_VARIABLE_NAME, (VOID**)&PlatformLang, NULL);
if (PlatformLang == NULL) {
return EFI_UNSUPPORTED;
@@ -115,7 +115,7 @@ CommandInit( //
// Find the best matching matching language from the supported languages
- // of Unicode Collation2 protocol.
+ // of Unicode Collation2 protocol.
//
BestLanguage = GetBestLanguage (
Uc->SupportedLanguages,
@@ -311,7 +311,7 @@ ShellCommandFindDynamicCommand ( //
// not found or out of resources
//
- return NULL;
+ return NULL;
}
for (NextCommand = CommandHandleList; *NextCommand != NULL; NextCommand++) {
@@ -328,7 +328,7 @@ ShellCommandFindDynamicCommand ( if (gUnicodeCollation->StriColl(
gUnicodeCollation,
(CHAR16*)CommandString,
- (CHAR16*)DynamicCommand->CommandName) == 0
+ (CHAR16*)DynamicCommand->CommandName) == 0
){
FreePool(CommandHandleList);
return (DynamicCommand);
@@ -429,7 +429,7 @@ ShellCommandGetDynamicCommandHelp( //
// TODO: how to get proper language?
//
- return DynamicCommand->GetHelp(DynamicCommand, "en");
+ return DynamicCommand->GetHelp(DynamicCommand, "en");
}
/**
@@ -847,7 +847,7 @@ ShellCommandRegisterAlias ( {
ALIAS_LIST *Node;
ALIAS_LIST *CommandAlias;
- ALIAS_LIST *PrevCommandAlias;
+ ALIAS_LIST *PrevCommandAlias;
INTN LexicalMatchValue;
//
@@ -896,7 +896,7 @@ ShellCommandRegisterAlias ( //
// Swap PrevCommandAlias and CommandAlias list entry if PrevCommandAlias list entry
// is alphabetically greater than CommandAlias list entry
- //
+ //
if (LexicalMatchValue > 0) {
CommandAlias = (ALIAS_LIST *) SwapListEntries (&PrevCommandAlias->Link, &CommandAlias->Link);
} else if (LexicalMatchValue < 0) {
|