]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: Clean up source files
authorLiming Gao <liming.gao@intel.com>
Wed, 27 Jun 2018 13:13:38 +0000 (21:13 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 28 Jun 2018 03:19:51 +0000 (11:19 +0800)
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>
133 files changed:
ShellPkg/Application/Shell/ConsoleLogger.c
ShellPkg/Application/Shell/ConsoleWrappers.c
ShellPkg/Application/Shell/ConsoleWrappers.h
ShellPkg/Application/Shell/FileHandleWrappers.c
ShellPkg/Application/Shell/Shell.c
ShellPkg/Application/Shell/Shell.h
ShellPkg/Application/Shell/ShellEnvVar.c
ShellPkg/Application/Shell/ShellEnvVar.h
ShellPkg/Application/Shell/ShellManParser.c
ShellPkg/Application/Shell/ShellParametersProtocol.c
ShellPkg/Application/Shell/ShellProtocol.c
ShellPkg/Application/Shell/ShellProtocol.h
ShellPkg/Application/ShellCTestApp/README.txt
ShellPkg/Application/ShellCTestApp/ShellCTestApp.inf
ShellPkg/DynamicCommand/DpDynamicCommand/Dp.c
ShellPkg/DynamicCommand/DpDynamicCommand/Dp.uni
ShellPkg/DynamicCommand/DpDynamicCommand/DpInternal.h
ShellPkg/DynamicCommand/DpDynamicCommand/DpUtilities.c
ShellPkg/DynamicCommand/TftpDynamicCommand/Tftp.c
ShellPkg/Include/Guid/ShellMapGuid.h
ShellPkg/Include/Library/HandleParsingLib.h
ShellPkg/Include/Library/ShellCommandLib.h
ShellPkg/Include/Library/ShellLib.h
ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.h
ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c
ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c
ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c
ShellPkg/Library/UefiShellDebug1CommandsLib/Comp.c
ShellPkg/Library/UefiShellDebug1CommandsLib/Compress.c
ShellPkg/Library/UefiShellDebug1CommandsLib/Dblk.c
ShellPkg/Library/UefiShellDebug1CommandsLib/Dmem.c
ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c
ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/Edit.c
ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c
ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.h
ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/MainTextEditor.c
ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/TextEditStrings.uni
ShellPkg/Library/UefiShellDebug1CommandsLib/EditInputBar.c
ShellPkg/Library/UefiShellDebug1CommandsLib/EditMenuBar.c
ShellPkg/Library/UefiShellDebug1CommandsLib/EditMenuBar.h
ShellPkg/Library/UefiShellDebug1CommandsLib/EditStatusBar.c
ShellPkg/Library/UefiShellDebug1CommandsLib/EditStatusBar.h
ShellPkg/Library/UefiShellDebug1CommandsLib/EfiCompress.c
ShellPkg/Library/UefiShellDebug1CommandsLib/EfiDecompress.c
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.c
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/BufferImage.h
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/Clipboard.c
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/Clipboard.h
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/DiskImage.c
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/DiskImage.h
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.c
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.h
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexEdit.c
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexEditor.h
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexEditorTypes.h
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/HexeditStrings.uni
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MainHexEditor.c
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MainHexEditor.h
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MemImage.c
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MemImage.h
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/Misc.c
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/Misc.h
ShellPkg/Library/UefiShellDebug1CommandsLib/LoadPciRom.c
ShellPkg/Library/UefiShellDebug1CommandsLib/MemMap.c
ShellPkg/Library/UefiShellDebug1CommandsLib/Mode.c
ShellPkg/Library/UefiShellDebug1CommandsLib/Pci.c
ShellPkg/Library/UefiShellDebug1CommandsLib/SerMode.c
ShellPkg/Library/UefiShellDebug1CommandsLib/SetSize.c
ShellPkg/Library/UefiShellDebug1CommandsLib/SetVar.c
ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/LibSmbiosView.c
ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c
ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c
ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/SmbiosView.c
ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.c
ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.h
ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.uni
ShellPkg/Library/UefiShellDriver1CommandsLib/Connect.c
ShellPkg/Library/UefiShellDriver1CommandsLib/DevTree.c
ShellPkg/Library/UefiShellDriver1CommandsLib/Devices.c
ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c
ShellPkg/Library/UefiShellDriver1CommandsLib/Disconnect.c
ShellPkg/Library/UefiShellDriver1CommandsLib/Drivers.c
ShellPkg/Library/UefiShellDriver1CommandsLib/DrvCfg.c
ShellPkg/Library/UefiShellDriver1CommandsLib/DrvDiag.c
ShellPkg/Library/UefiShellDriver1CommandsLib/OpenInfo.c
ShellPkg/Library/UefiShellDriver1CommandsLib/Reconnect.c
ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.uni
ShellPkg/Library/UefiShellDriver1CommandsLib/Unload.c
ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
ShellPkg/Library/UefiShellLevel1CommandsLib/For.c
ShellPkg/Library/UefiShellLevel1CommandsLib/Goto.c
ShellPkg/Library/UefiShellLevel1CommandsLib/If.c
ShellPkg/Library/UefiShellLevel1CommandsLib/Shift.c
ShellPkg/Library/UefiShellLevel1CommandsLib/Stall.c
ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.c
ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.h
ShellPkg/Library/UefiShellLevel2CommandsLib/Attrib.c
ShellPkg/Library/UefiShellLevel2CommandsLib/Cd.c
ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c
ShellPkg/Library/UefiShellLevel2CommandsLib/Load.c
ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c
ShellPkg/Library/UefiShellLevel2CommandsLib/Map.c
ShellPkg/Library/UefiShellLevel2CommandsLib/MkDir.c
ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c
ShellPkg/Library/UefiShellLevel2CommandsLib/Parse.c
ShellPkg/Library/UefiShellLevel2CommandsLib/Reset.c
ShellPkg/Library/UefiShellLevel2CommandsLib/Rm.c
ShellPkg/Library/UefiShellLevel2CommandsLib/Set.c
ShellPkg/Library/UefiShellLevel2CommandsLib/TimeDate.c
ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.c
ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h
ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.uni
ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c
ShellPkg/Library/UefiShellLevel3CommandsLib/Alias.c
ShellPkg/Library/UefiShellLevel3CommandsLib/Cls.c
ShellPkg/Library/UefiShellLevel3CommandsLib/Echo.c
ShellPkg/Library/UefiShellLevel3CommandsLib/GetMtc.c
ShellPkg/Library/UefiShellLevel3CommandsLib/Help.c
ShellPkg/Library/UefiShellLevel3CommandsLib/Pause.c
ShellPkg/Library/UefiShellLevel3CommandsLib/Touch.c
ShellPkg/Library/UefiShellLevel3CommandsLib/Type.c
ShellPkg/Library/UefiShellLevel3CommandsLib/Ver.c
ShellPkg/Library/UefiShellLib/UefiShellLib.c
ShellPkg/Library/UefiShellLib/UefiShellLib.h
ShellPkg/Library/UefiShellNetwork1CommandsLib/Ifconfig.c
ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c
ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.uni
ShellPkg/Library/UefiShellNetwork2CommandsLib/Ping6.c
ShellPkg/ShellPkg.dec

index 074e0cf04654105c8fbe1ea74285109fcef203b3..07e52f42312f0488122b7787d9049dac557bf4ac 100644 (file)
@@ -990,7 +990,7 @@ ConsoleLoggerSetMode (
     ConsoleInfo->CurrentStartRow = 0;\r
     ConsoleInfo->OurConOut.ClearScreen (&ConsoleInfo->OurConOut);\r
   }\r
-   \r
+\r
   return Status;\r
 }\r
 \r
index e1846ec9cba6e151f3a355eb6dc896a9579d571a..a0861e6a1d2390be7ab345a11ead4814ab1015c3 100644 (file)
@@ -2,7 +2,7 @@
   Function definitions for shell simple text in and out on top of file handles.\r
 \r
   (C) Copyright 2013 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -105,7 +105,7 @@ FileBasedSimpleTextInReadKeyStroke(
     CharSize = sizeof(CHAR16);\r
   } else {\r
     CharSize = sizeof(CHAR8);\r
-  } \r
+  }\r
   //\r
   // Decrement the amount of free space by Size or set to zero (for odd length files)\r
   //\r
@@ -123,7 +123,7 @@ FileBasedSimpleTextInReadKeyStroke(
 }\r
 \r
 /**\r
-  Function to create a EFI_SIMPLE_TEXT_INPUT_PROTOCOL on top of a \r
+  Function to create a EFI_SIMPLE_TEXT_INPUT_PROTOCOL on top of a\r
   SHELL_FILE_HANDLE to support redirecting input from a file.\r
 \r
   @param[in]  FileHandleToUse The pointer to the SHELL_FILE_HANDLE to use.\r
@@ -162,7 +162,7 @@ CreateSimpleTextInOnFile(
   ProtocolToReturn->FileHandle                 = FileHandleToUse;\r
   ProtocolToReturn->SimpleTextIn.Reset         = FileBasedSimpleTextInReset;\r
   ProtocolToReturn->SimpleTextIn.ReadKeyStroke = FileBasedSimpleTextInReadKeyStroke;\r
-  \r
+\r
   Status = gBS->CreateEvent (\r
                   EVT_NOTIFY_WAIT,\r
                   TPL_NOTIFY,\r
@@ -177,9 +177,9 @@ CreateSimpleTextInOnFile(
   }\r
   ///@todo possibly also install SimpleTextInputEx on the handle at this point.\r
   Status = gBS->InstallProtocolInterface(\r
-    &(ProtocolToReturn->TheHandle), \r
-    &gEfiSimpleTextInProtocolGuid, \r
-    EFI_NATIVE_INTERFACE, \r
+    &(ProtocolToReturn->TheHandle),\r
+    &gEfiSimpleTextInProtocolGuid,\r
+    EFI_NATIVE_INTERFACE,\r
     &(ProtocolToReturn->SimpleTextIn));\r
   if (!EFI_ERROR(Status)) {\r
     *HandleLocation = ProtocolToReturn->TheHandle;\r
@@ -191,7 +191,7 @@ CreateSimpleTextInOnFile(
 }\r
 \r
 /**\r
-  Function to close a EFI_SIMPLE_TEXT_INPUT_PROTOCOL on top of a \r
+  Function to close a EFI_SIMPLE_TEXT_INPUT_PROTOCOL on top of a\r
   SHELL_FILE_HANDLE to support redirecting input from a file.\r
 \r
   @param[in]  SimpleTextIn    The pointer to the SimpleTextIn to close.\r
@@ -213,8 +213,8 @@ CloseSimpleTextInOnFile(
   Status = gBS->CloseEvent(((SHELL_EFI_SIMPLE_TEXT_INPUT_PROTOCOL *)SimpleTextIn)->SimpleTextIn.WaitForKey);\r
 \r
   Status1 = gBS->UninstallProtocolInterface(\r
-    ((SHELL_EFI_SIMPLE_TEXT_INPUT_PROTOCOL*)SimpleTextIn)->TheHandle, \r
-    &gEfiSimpleTextInProtocolGuid, \r
+    ((SHELL_EFI_SIMPLE_TEXT_INPUT_PROTOCOL*)SimpleTextIn)->TheHandle,\r
+    &gEfiSimpleTextInProtocolGuid,\r
     &(((SHELL_EFI_SIMPLE_TEXT_INPUT_PROTOCOL*)SimpleTextIn)->SimpleTextIn));\r
 \r
   FreePool(SimpleTextIn);\r
@@ -283,9 +283,9 @@ FileBasedSimpleTextOutQueryMode (
   )\r
 {\r
   EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *PassThruProtocol;\r
-  \r
+\r
   PassThruProtocol = ((SHELL_EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *)This)->OriginalSimpleTextOut;\r
-  \r
+\r
   // Pass the QueryMode call thru to the original SimpleTextOutProtocol\r
   return (PassThruProtocol->QueryMode(\r
     PassThruProtocol,\r
@@ -421,7 +421,7 @@ FileBasedSimpleTextOutOutputString (
 }\r
 \r
 /**\r
-  Function to create a EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL on top of a \r
+  Function to create a EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL on top of a\r
   SHELL_FILE_HANDLE to support redirecting output from a file.\r
 \r
   @param[in]  FileHandleToUse  The pointer to the SHELL_FILE_HANDLE to use.\r
@@ -473,9 +473,9 @@ CreateSimpleTextOutOnFile(
   ProtocolToReturn->SimpleTextOut.Mode->CursorVisible = OriginalProtocol->Mode->CursorVisible;\r
 \r
   Status = gBS->InstallProtocolInterface(\r
-    &(ProtocolToReturn->TheHandle), \r
-    &gEfiSimpleTextOutProtocolGuid, \r
-    EFI_NATIVE_INTERFACE, \r
+    &(ProtocolToReturn->TheHandle),\r
+    &gEfiSimpleTextOutProtocolGuid,\r
+    EFI_NATIVE_INTERFACE,\r
     &(ProtocolToReturn->SimpleTextOut));\r
   if (!EFI_ERROR(Status)) {\r
     *HandleLocation = ProtocolToReturn->TheHandle;\r
@@ -488,7 +488,7 @@ CreateSimpleTextOutOnFile(
 }\r
 \r
 /**\r
-  Function to close a EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL on top of a \r
+  Function to close a EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL on top of a\r
   SHELL_FILE_HANDLE to support redirecting output from a file.\r
 \r
   @param[in] SimpleTextOut    The pointer to the SimpleTextOUT to close.\r
@@ -505,8 +505,8 @@ CloseSimpleTextOutOnFile(
     return (EFI_INVALID_PARAMETER);\r
   }\r
   Status = gBS->UninstallProtocolInterface(\r
-    ((SHELL_EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL*)SimpleTextOut)->TheHandle, \r
-    &gEfiSimpleTextOutProtocolGuid, \r
+    ((SHELL_EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL*)SimpleTextOut)->TheHandle,\r
+    &gEfiSimpleTextOutProtocolGuid,\r
     &(((SHELL_EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL*)SimpleTextOut)->SimpleTextOut));\r
   FreePool(SimpleTextOut->Mode);\r
   FreePool(SimpleTextOut);\r
index 35f3a717f5c0a2df6fffb05b100dea198b916590..e1860b411279832f8f8267b80157b4c3bfee79c9 100644 (file)
@@ -2,7 +2,7 @@
   Function definitions for shell simple text in and out on top of file handles.\r
 \r
   (C) Copyright 2013 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -17,7 +17,7 @@
 #define _SHELL_CONSOLE_WRAPPERS_HEADER_\r
 \r
 /**\r
-  Function to create a EFI_SIMPLE_TEXT_INPUT_PROTOCOL on top of a \r
+  Function to create a EFI_SIMPLE_TEXT_INPUT_PROTOCOL on top of a\r
   SHELL_FILE_HANDLE to support redirecting input from a file.\r
 \r
   @param[in]  FileHandleToUse The pointer to the SHELL_FILE_HANDLE to use.\r
@@ -33,7 +33,7 @@ CreateSimpleTextInOnFile(
   );\r
 \r
 /**\r
-  Function to close a EFI_SIMPLE_TEXT_INPUT_PROTOCOL on top of a \r
+  Function to close a EFI_SIMPLE_TEXT_INPUT_PROTOCOL on top of a\r
   SHELL_FILE_HANDLE to support redirecting input from a file.\r
 \r
   @param[in]  SimpleTextIn    The pointer to the SimpleTextIn to close.\r
@@ -46,7 +46,7 @@ CloseSimpleTextInOnFile(
   );\r
 \r
 /**\r
-  Function to create a EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL on top of a \r
+  Function to create a EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL on top of a\r
   SHELL_FILE_HANDLE to support redirecting output from a file.\r
 \r
   @param[in]  FileHandleToUse  The pointer to the SHELL_FILE_HANDLE to use.\r
@@ -64,7 +64,7 @@ CreateSimpleTextOutOnFile(
   );\r
 \r
 /**\r
-  Function to close a EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL on top of a \r
+  Function to close a EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL on top of a\r
   SHELL_FILE_HANDLE to support redirecting output from a file.\r
 \r
   @param[in] SimpleTextOut    The pointer to the SimpleTextOUT to close.\r
index 63aad69fe89799e038791059d51a07eccbffe4b5..8c62eb58628c26489478d4f4f72224ecf5bf85ea 100644 (file)
 #define MEM_WRITE_REALLOC_OVERHEAD 1024\r
 \r
 /**\r
-  File style interface for console (Open).  \r
-  \r
+  File style interface for console (Open).\r
+\r
   @param[in] This       Ignored.\r
   @param[out] NewHandle Ignored.\r
   @param[in] FileName   Ignored.\r
   @param[in] OpenMode   Ignored.\r
   @param[in] Attributes Ignored.\r
-  \r
+\r
   @retval EFI_NOT_FOUND\r
 **/\r
 EFI_STATUS\r
@@ -46,9 +46,9 @@ FileInterfaceOpenNotFound(
 \r
 /**\r
   File style interface for console (Close, Delete, & Flush)\r
-  \r
+\r
   @param[in] This       Ignored.\r
-  \r
+\r
   @retval EFI_SUCCESS\r
 **/\r
 EFI_STATUS\r
@@ -65,7 +65,7 @@ FileInterfaceNopGeneric(
 \r
   @param[in] This       Ignored.\r
   @param[out] Position  Ignored.\r
-  \r
+\r
   @retval EFI_UNSUPPORTED\r
 **/\r
 EFI_STATUS\r
@@ -80,10 +80,10 @@ FileInterfaceNopGetPosition(
 \r
 /**\r
   File style interface for console (SetPosition).\r
-  \r
+\r
   @param[in] This       Ignored.\r
   @param[in] Position   Ignored.\r
-  \r
+\r
   @retval EFI_UNSUPPORTED\r
 **/\r
 EFI_STATUS\r
@@ -98,12 +98,12 @@ FileInterfaceNopSetPosition(
 \r
 /**\r
   File style interface for console (GetInfo).\r
-  \r
+\r
   @param[in] This              Ignored.\r
   @param[in] InformationType   Ignored.\r
   @param[in, out] BufferSize   Ignored.\r
   @param[out] Buffer           Ignored.\r
-  \r
+\r
   @retval EFI_UNSUPPORTED\r
 **/\r
 EFI_STATUS\r
@@ -120,12 +120,12 @@ FileInterfaceNopGetInfo(
 \r
 /**\r
   File style interface for console (SetInfo).\r
-  \r
+\r
   @param[in] This       Ignored.\r
   @param[in] InformationType   Ignored.\r
   @param[in] BufferSize Ignored.\r
   @param[in] Buffer     Ignored.\r
-  \r
+\r
   @retval EFI_UNSUPPORTED\r
 **/\r
 EFI_STATUS\r
@@ -144,11 +144,11 @@ FileInterfaceNopSetInfo(
   File style interface for StdOut (Write).\r
 \r
   Writes data to the screen.\r
-  \r
+\r
   @param[in] This              The pointer to the EFI_FILE_PROTOCOL object.\r
   @param[in, out] BufferSize   Size in bytes of Buffer.\r
   @param[in] Buffer            The pointer to the buffer to write.\r
-  \r
+\r
   @retval EFI_UNSUPPORTED No output console is supported.\r
   @return A return value from gST->ConOut->OutputString.\r
 **/\r
@@ -171,11 +171,11 @@ FileInterfaceStdOutWrite(
 \r
 /**\r
   File style interface for StdIn (Write).\r
-  \r
+\r
   @param[in] This            Ignored.\r
   @param[in, out] BufferSize Ignored.\r
   @param[in] Buffer          Ignored.\r
-  \r
+\r
   @retval EFI_UNSUPPORTED\r
 **/\r
 EFI_STATUS\r
@@ -193,11 +193,11 @@ FileInterfaceStdInWrite(
   File style interface for console StdErr (Write).\r
 \r
   Writes error to the error output.\r
-  \r
+\r
   @param[in] This              The pointer to the EFI_FILE_PROTOCOL object.\r
   @param[in, out] BufferSize   Size in bytes of Buffer.\r
   @param[in] Buffer            The pointer to the buffer to write.\r
-  \r
+\r
   @return A return value from gST->StdErr->OutputString.\r
 **/\r
 EFI_STATUS\r
@@ -213,11 +213,11 @@ FileInterfaceStdErrWrite(
 \r
 /**\r
   File style interface for console StdOut (Read).\r
-  \r
+\r
   @param[in] This              Ignored.\r
   @param[in, out] BufferSize   Ignored.\r
   @param[out] Buffer           Ignored.\r
-  \r
+\r
   @retval EFI_UNSUPPORTED\r
 **/\r
 EFI_STATUS\r
@@ -233,11 +233,11 @@ FileInterfaceStdOutRead(
 \r
 /**\r
   File style interface for console StdErr (Read).\r
-  \r
+\r
   @param[in] This              Ignored.\r
   @param[in, out] BufferSize   Ignored.\r
   @param[out] Buffer           Ignored.\r
-  \r
+\r
   @retval EFI_UNSUPPORTED Always.\r
 **/\r
 EFI_STATUS\r
@@ -253,11 +253,11 @@ FileInterfaceStdErrRead(
 \r
 /**\r
   File style interface for NUL file (Read).\r
-  \r
+\r
   @param[in] This              Ignored.\r
   @param[in, out] BufferSize   Poiner to 0 upon return.\r
   @param[out] Buffer           Ignored.\r
-  \r
+\r
   @retval EFI_SUCCESS Always.\r
 **/\r
 EFI_STATUS\r
@@ -274,11 +274,11 @@ FileInterfaceNulRead(
 \r
 /**\r
   File style interface for NUL file (Write).\r
-  \r
+\r
   @param[in] This              Ignored.\r
   @param[in, out] BufferSize   Ignored.\r
   @param[in] Buffer            Ignored.\r
-  \r
+\r
   @retval EFI_SUCCESS\r
 **/\r
 EFI_STATUS\r
@@ -304,7 +304,7 @@ FileInterfaceNulWrite(
 EFI_STATUS\r
 CreateTabCompletionList (\r
   IN CONST CHAR16             *InputString,\r
-  IN CONST UINTN              StringLen, \r
+  IN CONST UINTN              StringLen,\r
   IN CONST UINTN              BufferSize,\r
   IN OUT EFI_SHELL_FILE_INFO  **TabCompletionList,\r
   IN OUT   UINTN              *TabUpdatePos\r
@@ -1025,9 +1025,9 @@ typedef struct {
   File style interface for Environment Variable (Close).\r
 \r
   Frees the memory for this object.\r
-  \r
+\r
   @param[in] This       The pointer to the EFI_FILE_PROTOCOL object.\r
-  \r
+\r
   @retval EFI_SUCCESS\r
 **/\r
 EFI_STATUS\r
@@ -1043,8 +1043,8 @@ FileInterfaceEnvClose(
   UINTN       TotalSize;\r
 \r
   //\r
-  // Most if not all UEFI commands will have an '\r\n' at the end of any output. \r
-  // Since the output was redirected to a variable, it does not make sense to \r
+  // Most if not all UEFI commands will have an '\r\n' at the end of any output.\r
+  // Since the output was redirected to a variable, it does not make sense to\r
   // keep this.  So, before closing, strip the trailing '\r\n' from the variable\r
   // if it exists.\r
   //\r
@@ -1063,12 +1063,12 @@ FileInterfaceEnvClose(
     NewBuffer = AllocateZeroPool (TotalSize);\r
     if (NewBuffer == NULL) {\r
       return EFI_OUT_OF_RESOURCES;\r
-    }  \r
+    }\r
     Status = SHELL_GET_ENVIRONMENT_VARIABLE(((EFI_FILE_PROTOCOL_ENVIRONMENT*)This)->Name, &NewSize, NewBuffer);\r
   }\r
-  \r
+\r
   if (!EFI_ERROR(Status) && NewBuffer != NULL) {\r
-    \r
+\r
     if (TotalSize / sizeof (CHAR16) >= 3) {\r
       if ( (((CHAR16*)NewBuffer)[TotalSize / sizeof (CHAR16) - 2] == CHAR_LINEFEED) &&\r
            (((CHAR16*)NewBuffer)[TotalSize / sizeof (CHAR16) - 3] == CHAR_CARRIAGE_RETURN)\r
@@ -1112,8 +1112,8 @@ FileInterfaceEnvClose(
         }\r
       }\r
     }\r
-  } \r
-  \r
+  }\r
+\r
   SHELL_FREE_NON_NULL(NewBuffer);\r
   FreePool((EFI_FILE_PROTOCOL_ENVIRONMENT*)This);\r
   return (Status);\r
@@ -1121,9 +1121,9 @@ FileInterfaceEnvClose(
 \r
 /**\r
   File style interface for Environment Variable (Delete).\r
-  \r
+\r
   @param[in] This       The pointer to the EFI_FILE_PROTOCOL object.\r
-  \r
+\r
   @retval The return value from FileInterfaceEnvClose().\r
 **/\r
 EFI_STATUS\r
@@ -1138,11 +1138,11 @@ FileInterfaceEnvDelete(
 \r
 /**\r
   File style interface for Environment Variable (Read).\r
-  \r
+\r
   @param[in] This              The pointer to the EFI_FILE_PROTOCOL object.\r
   @param[in, out] BufferSize   Size in bytes of Buffer.\r
   @param[out] Buffer           The pointer to the buffer to fill.\r
-  \r
+\r
   @retval EFI_SUCCESS   The data was read.\r
 **/\r
 EFI_STATUS\r
@@ -1162,11 +1162,11 @@ FileInterfaceEnvRead(
 /**\r
   File style interface for Volatile Environment Variable (Write).\r
   This function also caches the environment variable into gShellEnvVarList.\r
-  \r
+\r
   @param[in] This              The pointer to the EFI_FILE_PROTOCOL object.\r
   @param[in, out] BufferSize   Size in bytes of Buffer.\r
   @param[in] Buffer            The pointer to the buffer to write.\r
-  \r
+\r
   @retval EFI_SUCCESS             The data was successfully write to variable.\r
   @retval SHELL_OUT_OF_RESOURCES  A memory allocation failed.\r
 **/\r
@@ -1239,11 +1239,11 @@ FileInterfaceEnvVolWrite(
 /**\r
   File style interface for Non Volatile Environment Variable (Write).\r
   This function also caches the environment variable into gShellEnvVarList.\r
-  \r
+\r
   @param[in] This              The pointer to the EFI_FILE_PROTOCOL object.\r
   @param[in, out] BufferSize   Size in bytes of Buffer.\r
   @param[in] Buffer            The pointer to the buffer to write.\r
-  \r
+\r
   @retval EFI_SUCCESS             The data was successfully write to variable.\r
   @retval SHELL_OUT_OF_RESOURCES  A memory allocation failed.\r
 **/\r
@@ -1362,7 +1362,7 @@ CreateFileInterfaceEnv(
   EnvFileInterface->Flush       = FileInterfaceNopGeneric;\r
   EnvFileInterface->Delete      = FileInterfaceEnvDelete;\r
   EnvFileInterface->Read        = FileInterfaceEnvRead;\r
-  \r
+\r
   CopyMem(EnvFileInterface->Name, EnvName, EnvNameSize);\r
 \r
   //\r
@@ -1513,10 +1513,10 @@ typedef struct {
 \r
 /**\r
   File style interface for Mem (SetPosition).\r
-  \r
+\r
   @param[in] This       The pointer to the EFI_FILE_PROTOCOL object.\r
   @param[out] Position  The position to set.\r
-  \r
+\r
   @retval EFI_SUCCESS             The position was successfully changed.\r
   @retval EFI_INVALID_PARAMETER   The Position was invalid.\r
 **/\r
@@ -1537,12 +1537,12 @@ FileInterfaceMemSetPosition(
 \r
 /**\r
   File style interface for Mem (GetPosition).\r
-  \r
+\r
   @param[in] This       The pointer to the EFI_FILE_PROTOCOL object.\r
   @param[out] Position  The pointer to the position.\r
-  \r
+\r
   @retval EFI_SUCCESS   The position was retrieved.\r
-**/ \r
+**/\r
 EFI_STATUS\r
 EFIAPI\r
 FileInterfaceMemGetPosition(\r
@@ -1604,11 +1604,11 @@ FileInterfaceMemGetInfo(
 \r
 /**\r
   File style interface for Mem (Write).\r
-  \r
+\r
   @param[in] This              The pointer to the EFI_FILE_PROTOCOL object.\r
   @param[in, out] BufferSize   Size in bytes of Buffer.\r
   @param[in] Buffer            The pointer to the buffer to write.\r
-  \r
+\r
   @retval EFI_OUT_OF_RESOURCES The operation failed due to lack of resources.\r
   @retval EFI_SUCCESS          The data was written.\r
 **/\r
@@ -1659,11 +1659,11 @@ FileInterfaceMemWrite(
 \r
 /**\r
   File style interface for Mem (Read).\r
-  \r
+\r
   @param[in] This              The pointer to the EFI_FILE_PROTOCOL object.\r
   @param[in, out] BufferSize   Size in bytes of Buffer.\r
   @param[in] Buffer            The pointer to the buffer to fill.\r
-  \r
+\r
   @retval EFI_SUCCESS   The data was read.\r
 **/\r
 EFI_STATUS\r
@@ -1689,11 +1689,11 @@ FileInterfaceMemRead(
   File style interface for Mem (Close).\r
 \r
   Frees all memory associated with this object.\r
-  \r
+\r
   @param[in] This       The pointer to the EFI_FILE_PROTOCOL object.\r
-  \r
+\r
   @retval EFI_SUCCESS   The 'file' was closed.\r
-**/ \r
+**/\r
 EFI_STATUS\r
 EFIAPI\r
 FileInterfaceMemClose(\r
@@ -1784,7 +1784,7 @@ typedef struct {
 \r
   @param  This            Protocol instance pointer.\r
   @param  Position        Byte position from the start of the file.\r
-                          \r
+\r
   @retval EFI_SUCCESS     Data was written.\r
   @retval EFI_UNSUPPORTED Seek request for non-zero is not valid on open.\r
 \r
@@ -1804,7 +1804,7 @@ FileInterfaceFileSetPosition(
 \r
   @param  This            Protocol instance pointer.\r
   @param  Position        Byte position from the start of the file.\r
-                          \r
+\r
   @retval EFI_SUCCESS     Data was written.\r
   @retval EFI_UNSUPPORTED Seek request for non-zero is not valid on open..\r
 \r
@@ -1999,7 +1999,7 @@ FileInterfaceFileOpen (
   Close and delete the file handle.\r
 \r
   @param  This                     Protocol instance pointer.\r
-                                   \r
+\r
   @retval EFI_SUCCESS              The device was opened.\r
   @retval EFI_WARN_DELETE_FAILURE  The handle was closed but the file was not deleted.\r
 \r
@@ -2018,9 +2018,9 @@ FileInterfaceFileDelete(
 \r
 /**\r
   File style interface for File (Close).\r
-  \r
+\r
   @param[in] This       The pointer to the EFI_FILE_PROTOCOL object.\r
-  \r
+\r
   @retval EFI_SUCCESS   The file was closed.\r
 **/\r
 EFI_STATUS\r
@@ -2038,13 +2038,13 @@ FileInterfaceFileClose(
 /**\r
   File style interface for File (Write).\r
 \r
-  If the file was opened with ASCII mode the data will be processed through \r
+  If the file was opened with ASCII mode the data will be processed through\r
   AsciiSPrint before writing.\r
-  \r
+\r
   @param[in] This              The pointer to the EFI_FILE_PROTOCOL object.\r
   @param[in, out] BufferSize   Size in bytes of Buffer.\r
   @param[in] Buffer            The pointer to the buffer to write.\r
-  \r
+\r
   @retval EFI_SUCCESS   The data was written.\r
 **/\r
 EFI_STATUS\r
@@ -2081,10 +2081,10 @@ FileInterfaceFileWrite(
 \r
   This will create a new EFI_FILE_PROTOCOL identical to the Templace\r
   except that the new one has Unicode and Ascii knowledge.\r
-  \r
+\r
   @param[in] Template   A pointer to the EFI_FILE_PROTOCOL object.\r
   @param[in] Unicode    TRUE for UCS-2, FALSE for ASCII.\r
-  \r
+\r
   @return a new EFI_FILE_PROTOCOL object to be used instead of the template.\r
 **/\r
 EFI_FILE_PROTOCOL*\r
index 577e17311bead009f6b2b24a8cc1e186e33c2e63..47ae3c373c2ccd5b451663fe1dce4069e3215e37 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   This is THE shell (application)\r
 \r
-  Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   (C) Copyright 2013-2014 Hewlett-Packard Development Company, L.P.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -104,7 +104,7 @@ TrimSpaces(
 }\r
 \r
 /**\r
-  Parse for the next instance of one string within another string. Can optionally make sure that \r
+  Parse for the next instance of one string within another string. Can optionally make sure that\r
   the string was not escaped (^ character) per the shell specification.\r
 \r
   @param[in] SourceString             The string to search within\r
@@ -160,13 +160,13 @@ IsValidEnvironmentVariableName(
   )\r
 {\r
   CONST CHAR16    *Walker;\r
-  \r
+\r
   Walker = NULL;\r
 \r
   ASSERT (BeginPercent != NULL);\r
   ASSERT (EndPercent != NULL);\r
   ASSERT (BeginPercent < EndPercent);\r
-  \r
+\r
   if ((BeginPercent + 1) == EndPercent) {\r
     return FALSE;\r
   }\r
@@ -212,9 +212,9 @@ ContainsSplit(
   SecondQuote   = NULL;\r
   TempSpot      = FindFirstCharacter(CmdLine, L"|", L'^');\r
 \r
-  if (FirstQuote == NULL    || \r
-      TempSpot == NULL      || \r
-      TempSpot == CHAR_NULL || \r
+  if (FirstQuote == NULL    ||\r
+      TempSpot == NULL      ||\r
+      TempSpot == CHAR_NULL ||\r
       FirstQuote > TempSpot\r
       ) {\r
     return (BOOLEAN) ((TempSpot != NULL) && (*TempSpot != CHAR_NULL));\r
@@ -223,7 +223,7 @@ ContainsSplit(
   while ((TempSpot != NULL) && (*TempSpot != CHAR_NULL)) {\r
     if (FirstQuote == NULL || FirstQuote > TempSpot) {\r
       break;\r
-    }    \r
+    }\r
     SecondQuote = FindNextInstance (FirstQuote + 1, L"\"", TRUE);\r
     if (SecondQuote == NULL) {\r
       break;\r
@@ -235,14 +235,14 @@ ContainsSplit(
       FirstQuote = FindNextInstance (SecondQuote + 1, L"\"", TRUE);\r
       TempSpot = FindFirstCharacter(TempSpot + 1, L"|", L'^');\r
       continue;\r
-    } \r
+    }\r
   }\r
-  \r
+\r
   return (BOOLEAN) ((TempSpot != NULL) && (*TempSpot != CHAR_NULL));\r
 }\r
 \r
 /**\r
-  Function to start monitoring for CTRL-S using SimpleTextInputEx.  This \r
+  Function to start monitoring for CTRL-S using SimpleTextInputEx.  This\r
   feature's enabled state was not known when the shell initially launched.\r
 \r
   @retval EFI_SUCCESS           The feature is enabled.\r
@@ -266,8 +266,8 @@ InternalEfiShellStartCtrlSMonitor(
     EFI_OPEN_PROTOCOL_GET_PROTOCOL);\r
   if (EFI_ERROR(Status)) {\r
     ShellPrintHiiEx(\r
-      -1, \r
-      -1, \r
+      -1,\r
+      -1,\r
       NULL,\r
       STRING_TOKEN (STR_SHELL_NO_IN_EX),\r
       ShellInfoObject.HiiHandle);\r
@@ -284,7 +284,7 @@ InternalEfiShellStartCtrlSMonitor(
     &KeyData,\r
     NotificationFunction,\r
     &ShellInfoObject.CtrlSNotifyHandle1);\r
-  \r
+\r
   KeyData.KeyState.KeyShiftState  = EFI_SHIFT_STATE_VALID|EFI_RIGHT_CONTROL_PRESSED;\r
   if (!EFI_ERROR(Status)) {\r
     Status = SimpleEx->RegisterKeyNotify(\r
@@ -302,7 +302,7 @@ InternalEfiShellStartCtrlSMonitor(
       &KeyData,\r
       NotificationFunction,\r
       &ShellInfoObject.CtrlSNotifyHandle3);\r
-  }  \r
+  }\r
   KeyData.KeyState.KeyShiftState  = EFI_SHIFT_STATE_VALID|EFI_RIGHT_CONTROL_PRESSED;\r
   if (!EFI_ERROR(Status)) {\r
     Status = SimpleEx->RegisterKeyNotify(\r
@@ -1129,7 +1129,7 @@ ProcessCommandLine(
 \r
 /**\r
   Function try to find location of the Startup.nsh file.\r
-  \r
+\r
   The buffer is callee allocated and should be freed by the caller.\r
 \r
   @param    ImageDevicePath       The path to the image for shell.  first place to look for the startup script\r
@@ -1156,7 +1156,7 @@ LocateStartupScript (
   // Try to find 'Startup.nsh' in the directory where the shell itself was launched.\r
   //\r
   MapName = ShellInfoObject.NewEfiShellProtocol->GetMapFromDevicePath (&ImageDevicePath);\r
-  if (MapName != NULL) {   \r
+  if (MapName != NULL) {\r
     StartupScriptPath = StrnCatGrow (&StartupScriptPath, &Size, MapName, 0);\r
     if (StartupScriptPath == NULL) {\r
       //\r
@@ -1387,7 +1387,7 @@ AddBufferToFreeList (
 \r
 \r
 /**\r
-  Create a new buffer list and stores the old one to OldBufferList \r
+  Create a new buffer list and stores the old one to OldBufferList\r
 \r
   @param OldBufferList   The temporary list head used to store the nodes in BufferToFreeList.\r
 **/\r
@@ -1432,7 +1432,7 @@ AddLineToCommandHistory(
 \r
   Count = 0;\r
   MaxHistoryCmdCount = PcdGet16(PcdShellMaxHistoryCommandCount);\r
-  \r
+\r
   if (MaxHistoryCmdCount == 0) {\r
     return ;\r
   }\r
@@ -1546,7 +1546,7 @@ StripUnreplacedEnvironmentVariables(
       }\r
       continue;\r
     }\r
-    \r
+\r
     if (FirstQuote == NULL || SecondPercent < FirstQuote) {\r
       if (IsValidEnvironmentVariableName(FirstPercent, SecondPercent)) {\r
         //\r
@@ -1662,16 +1662,16 @@ ShellConvertVariables (
     ;  MasterEnvList != NULL && *MasterEnvList != CHAR_NULL\r
     ;  MasterEnvList += StrLen(MasterEnvList) + 1\r
    ){\r
-    StrCpyS( ItemTemp, \r
-              ((ItemSize+(2*sizeof(CHAR16)))/sizeof(CHAR16)), \r
+    StrCpyS( ItemTemp,\r
+              ((ItemSize+(2*sizeof(CHAR16)))/sizeof(CHAR16)),\r
               L"%"\r
               );\r
-    StrCatS( ItemTemp, \r
-              ((ItemSize+(2*sizeof(CHAR16)))/sizeof(CHAR16)), \r
+    StrCatS( ItemTemp,\r
+              ((ItemSize+(2*sizeof(CHAR16)))/sizeof(CHAR16)),\r
               MasterEnvList\r
               );\r
-    StrCatS( ItemTemp, \r
-              ((ItemSize+(2*sizeof(CHAR16)))/sizeof(CHAR16)), \r
+    StrCatS( ItemTemp,\r
+              ((ItemSize+(2*sizeof(CHAR16)))/sizeof(CHAR16)),\r
               L"%"\r
               );\r
     ShellCopySearchAndReplace(NewCommandLine1, NewCommandLine2, NewSize, ItemTemp, EfiShellGetEnv(MasterEnvList), TRUE, FALSE);\r
@@ -1697,7 +1697,7 @@ ShellConvertVariables (
   //\r
   ShellCopySearchAndReplace(NewCommandLine1, NewCommandLine2, NewSize, L"^%", L"%", TRUE, FALSE);\r
   StrCpyS(NewCommandLine1, NewSize/sizeof(CHAR16), NewCommandLine2);\r
-  \r
+\r
   FreePool(NewCommandLine2);\r
   FreePool(ItemTemp);\r
 \r
@@ -1823,7 +1823,7 @@ RunSplitCommand(
 }\r
 \r
 /**\r
-  Take the original command line, substitute any variables, free \r
+  Take the original command line, substitute any variables, free\r
   the original string, return the modified copy.\r
 \r
   @param[in] CmdLine  pointer to the command line to update.\r
@@ -1847,7 +1847,7 @@ ShellSubstituteVariables(
 }\r
 \r
 /**\r
-  Take the original command line, substitute any alias in the first group of space delimited characters, free \r
+  Take the original command line, substitute any alias in the first group of space delimited characters, free\r
   the original string, return the modified copy.\r
 \r
   @param[in] CmdLine  pointer to the command line to update.\r
@@ -1906,7 +1906,7 @@ ShellSubstituteAliases(
 \r
   SHELL_FREE_NON_NULL(*CmdLine);\r
   SHELL_FREE_NON_NULL(CommandName);\r
\r
+\r
   //\r
   // re-assign the passed in double pointer to point to our newly allocated buffer\r
   //\r
@@ -1919,7 +1919,7 @@ ShellSubstituteAliases(
   Takes the Argv[0] part of the command line and determine the meaning of it.\r
 \r
   @param[in] CmdName  pointer to the command line to update.\r
-  \r
+\r
   @retval Internal_Command    The name is an internal command.\r
   @retval File_Sys_Change     the name is a file system change.\r
   @retval Script_File_Name    the name is a NSH script file.\r
@@ -1947,7 +1947,7 @@ GetOperationType(
   // Test for file system change request.  anything ending with first : and cant have spaces.\r
   //\r
   if (CmdName[(StrLen(CmdName)-1)] == L':') {\r
-    if ( StrStr(CmdName, L" ") != NULL \r
+    if ( StrStr(CmdName, L" ") != NULL\r
       || StrLen(StrStr(CmdName, L":")) > 1\r
       ) {\r
       return (Unknown_Invalid);\r
@@ -1977,7 +1977,7 @@ GetOperationType(
     SHELL_FREE_NON_NULL(FileWithPath);\r
     return (Efi_Application);\r
   }\r
-  \r
+\r
   SHELL_FREE_NON_NULL(FileWithPath);\r
   //\r
   // No clue what this is... return invalid flag...\r
@@ -1994,7 +1994,7 @@ GetOperationType(
   @retval EFI_OUT_OF_RESOURCES  A memory allocation failed.\r
   @retval EFI_NOT_FOUND         The operation type is unknown or invalid.\r
 **/\r
-EFI_STATUS \r
+EFI_STATUS\r
 IsValidSplit(\r
   IN CONST CHAR16 *CmdLine\r
   )\r
@@ -2079,13 +2079,13 @@ VerifySplit(
   // recurse to verify the next item\r
   //\r
   TempSpot = FindFirstCharacter(CmdLine, L"|", L'^') + 1;\r
-  if (*TempSpot == L'a' && \r
+  if (*TempSpot == L'a' &&\r
       (*(TempSpot + 1) == L' ' || *(TempSpot + 1) == CHAR_NULL)\r
      ) {\r
     // If it's an ASCII pipe '|a'\r
     TempSpot += 1;\r
   }\r
-  \r
+\r
   return (VerifySplit(TempSpot));\r
 }\r
 \r
@@ -2149,7 +2149,7 @@ ChangeMappedDrive(
   // make sure we are the right operation\r
   //\r
   ASSERT(CmdLine[(StrLen(CmdLine)-1)] == L':' && StrStr(CmdLine, L" ") == NULL);\r
-  \r
+\r
   //\r
   // Call the protocol API to do the work\r
   //\r
@@ -2294,7 +2294,7 @@ ProcessCommandLineToFinal(
   Run an internal shell command.\r
 \r
   This API will update the shell's environment since these commands are libraries.\r
-  \r
+\r
   @param[in] CmdLine          the command line to run.\r
   @param[in] FirstParameter   the first parameter on the command line\r
   @param[in] ParamProtocol    the shell parameters protocol pointer\r
@@ -2317,7 +2317,7 @@ RunInternalCommand(
   SHELL_STATUS              CommandReturnedStatus;\r
   BOOLEAN                   LastError;\r
   CHAR16                    *Walker;\r
-  CHAR16                    *NewCmdLine;  \r
+  CHAR16                    *NewCmdLine;\r
 \r
   NewCmdLine = AllocateCopyPool (StrSize (CmdLine), CmdLine);\r
   if (NewCmdLine == NULL) {\r
@@ -2597,7 +2597,7 @@ SetupAndRunCommandOrFile(
 /**\r
   Function will process and run a command line.\r
 \r
-  This will determine if the command line represents an internal shell \r
+  This will determine if the command line represents an internal shell\r
   command or dispatch an external application.\r
 \r
   @param[in] CmdLine      The command line to parse.\r
@@ -2673,7 +2673,7 @@ RunShellCommand(
     Status = ProcessNewSplitCommandLine(CleanOriginal);\r
     SHELL_FREE_NON_NULL(CleanOriginal);\r
     return (Status);\r
-  } \r
+  }\r
 \r
   //\r
   // We need the first parameter information so we can determine the operation type\r
@@ -2734,7 +2734,7 @@ RunShellCommand(
 /**\r
   Function will process and run a command line.\r
 \r
-  This will determine if the command line represents an internal shell \r
+  This will determine if the command line represents an internal shell\r
   command or dispatch an external application.\r
 \r
   @param[in] CmdLine      The command line to parse.\r
@@ -2907,8 +2907,8 @@ RunScriptFileHandle (
       ; // conditional increment in the body of the loop\r
   ){\r
     ASSERT(CommandLine2 != NULL);\r
-    StrnCpyS( CommandLine2, \r
-              PrintBuffSize/sizeof(CHAR16), \r
+    StrnCpyS( CommandLine2,\r
+              PrintBuffSize/sizeof(CHAR16),\r
               NewScriptFile->CurrentCommand->Cl,\r
               PrintBuffSize/sizeof(CHAR16) - 1\r
               );\r
@@ -2934,8 +2934,8 @@ RunScriptFileHandle (
       //\r
       // Due to variability in starting the find and replace action we need to have both buffers the same.\r
       //\r
-      StrnCpyS( CommandLine, \r
-                PrintBuffSize/sizeof(CHAR16), \r
+      StrnCpyS( CommandLine,\r
+                PrintBuffSize/sizeof(CHAR16),\r
                 CommandLine2,\r
                 PrintBuffSize/sizeof(CHAR16) - 1\r
                 );\r
@@ -2990,8 +2990,8 @@ RunScriptFileHandle (
       Status = ShellCopySearchAndReplace(CommandLine,  CommandLine2, PrintBuffSize, L"%8", L"\"\"", FALSE, FALSE);\r
       Status = ShellCopySearchAndReplace(CommandLine2,  CommandLine, PrintBuffSize, L"%9", L"\"\"", FALSE, FALSE);\r
 \r
-      StrnCpyS( CommandLine2, \r
-                PrintBuffSize/sizeof(CHAR16), \r
+      StrnCpyS( CommandLine2,\r
+                PrintBuffSize/sizeof(CHAR16),\r
                 CommandLine,\r
                 PrintBuffSize/sizeof(CHAR16) - 1\r
                 );\r
index ff0849446817a5ccb681fc48044e205d22c7a38f..69b19c6a2d3bbb51d7e8800084e7e85fe2adcdff 100644 (file)
@@ -2,7 +2,7 @@
   function definitions for internal to shell functions.\r
 \r
   (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -294,7 +294,7 @@ RunCommand(
 /**\r
   Function will process and run a command line.\r
 \r
-  This will determine if the command line represents an internal shell \r
+  This will determine if the command line represents an internal shell\r
   command or dispatch an external application.\r
 \r
   @param[in] CmdLine      The command line to parse.\r
@@ -383,8 +383,8 @@ TrimSpaces(
   );\r
 \r
 /**\r
-  \r
-  Create a new buffer list and stores the old one to OldBufferList  \r
+\r
+  Create a new buffer list and stores the old one to OldBufferList\r
 \r
   @param OldBufferList   The temporary list head used to store the nodes in BufferToFreeList.\r
 **/\r
index 4c49c1ca980e1df17f9d238974f3ccc46fa040a5..663276454273d7cb239e898134fa68ddbd85264b 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   function declarations for shell environment functions.\r
 \r
-  Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -143,9 +143,9 @@ GetEnvironmentVariableList(
   if (ListHead == NULL) {\r
     return (EFI_INVALID_PARAMETER);\r
   }\r
-  \r
+\r
   Status = EFI_SUCCESS;\r
-  \r
+\r
   ValBufferSize = INIT_DATA_BUFFER_SIZE;\r
   NameBufferSize = INIT_NAME_BUFFER_SIZE;\r
   VariableName = AllocateZeroPool(NameBufferSize);\r
@@ -171,7 +171,7 @@ GetEnvironmentVariableList(
       NameSize = NameBufferSize;\r
       Status = gRT->GetNextVariableName(&NameSize, VariableName, &Guid);\r
     }\r
-    \r
+\r
     if (!EFI_ERROR(Status) && CompareGuid(&Guid, &gShellVariableGuid)){\r
       VarList = AllocateZeroPool(sizeof(ENV_VAR_LIST));\r
       if (VarList == NULL) {\r
@@ -200,7 +200,7 @@ GetEnvironmentVariableList(
             Status = EFI_OUT_OF_RESOURCES;\r
             break;\r
           }\r
-          \r
+\r
           ValSize = ValBufferSize;\r
           Status = SHELL_GET_ENVIRONMENT_VARIABLE_AND_ATTRIBUTES(VariableName, &VarList->Atts, &ValSize, VarList->Val);\r
         }\r
@@ -348,8 +348,8 @@ SetEnvironmentVariables(
     //\r
     // Copy the string into the Key, leaving the last character allocated as NULL to terminate\r
     //\r
-    StrnCpyS( Node->Key, \r
-              StrStr(CurrentString, L"=") - CurrentString + 1, \r
+    StrnCpyS( Node->Key,\r
+              StrStr(CurrentString, L"=") - CurrentString + 1,\r
               CurrentString,\r
               StrStr(CurrentString, L"=") - CurrentString\r
               );\r
@@ -413,7 +413,7 @@ ShellFindEnvVarInList (
   )\r
 {\r
   ENV_VAR_LIST      *Node;\r
-  \r
+\r
   if (Key == NULL || Value == NULL || ValueSize == NULL) {\r
     return SHELL_INVALID_PARAMETER;\r
   }\r
@@ -459,7 +459,7 @@ ShellAddEnvVarToList (
   ENV_VAR_LIST      *Node;\r
   CHAR16            *LocalKey;\r
   CHAR16            *LocalValue;\r
-  \r
+\r
   if (Key == NULL || Value == NULL || ValueSize == 0) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
@@ -511,7 +511,7 @@ ShellAddEnvVarToList (
   Remove a specified environment variable in gShellEnvVarList.\r
 \r
   @param Key        The name of the environment variable.\r
-  \r
+\r
   @retval EFI_SUCCESS       The command executed successfully.\r
   @retval EFI_NOT_FOUND     The environment variable is not found in\r
                             gShellEnvVarList.\r
@@ -546,7 +546,7 @@ ShellRemvoeEnvVarFromList (
 /**\r
   Initialize the gShellEnvVarList and cache all Shell-Guid-based environment\r
   variables.\r
-  \r
+\r
 **/\r
 EFI_STATUS\r
 ShellInitEnvVarList (\r
index b9efed042b7153a588237fca18858195de0684f8..0684516a5c192c2348955cafac009533ac8bffd4 100644 (file)
@@ -6,7 +6,7 @@
 //#include <Library/UefiRuntimeServicesTableLib.h>\r
 \r
 \r
-  Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -266,9 +266,9 @@ ShellRemvoeEnvVarFromList (
   );\r
 \r
 /**\r
-  Initialize the gShellEnvVarList and cache all Shell-Guid-based environment \r
+  Initialize the gShellEnvVarList and cache all Shell-Guid-based environment\r
   variables.\r
-  \r
+\r
 **/\r
 EFI_STATUS\r
 ShellInitEnvVarList (\r
index 975f3c22da878de77fb3f74ebabf1d3dcd7b40df..b180c6c8f7108586f9895c6c6d982d7fb5399363 100644 (file)
@@ -146,14 +146,14 @@ GetManFileName(
   } else {\r
     Buffer = AllocateZeroPool(StrSize(ManFileName) + 4*sizeof(CHAR16));\r
     if (Buffer != NULL) {\r
-      StrnCpyS( Buffer, \r
-                (StrSize(ManFileName) + 4*sizeof(CHAR16))/sizeof(CHAR16), \r
-                ManFileName, \r
+      StrnCpyS( Buffer,\r
+                (StrSize(ManFileName) + 4*sizeof(CHAR16))/sizeof(CHAR16),\r
+                ManFileName,\r
                 StrLen(ManFileName)\r
                 );\r
-      StrnCatS( Buffer, \r
+      StrnCatS( Buffer,\r
                 (StrSize(ManFileName) + 4*sizeof(CHAR16))/sizeof(CHAR16),\r
-                L".man", \r
+                L".man",\r
                 4\r
                 );\r
     }\r
index 8d76fb4be7ff0910d333b1814ed471a9e23099f1..90889a372524bfbe3e1e7aefcbd12b3e4e5d8148 100644 (file)
@@ -5,7 +5,7 @@
   (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
   Copyright (C) 2014, Red Hat, Inc.\r
   (C) Copyright 2013 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -147,8 +147,8 @@ DEBUG_CODE_END();
   // Remove any non-escaped quotes in the string\r
   // Remove any remaining escape characters in the string\r
   //\r
-  for (NextDelim = FindFirstCharacter(*TempParameter, L"\"^", CHAR_NULL) \r
-    ; *NextDelim != CHAR_NULL \r
+  for (NextDelim = FindFirstCharacter(*TempParameter, L"\"^", CHAR_NULL)\r
+    ; *NextDelim != CHAR_NULL\r
     ; NextDelim = FindFirstCharacter(NextDelim, L"\"^", CHAR_NULL)\r
     ) {\r
     if (*NextDelim == L'^') {\r
@@ -165,9 +165,9 @@ DEBUG_CODE_END();
       //\r
       if (StripQuotation) {\r
         CopyMem ((CHAR16*)NextDelim, NextDelim + 1, StrSize (NextDelim + 1));\r
-         } else{\r
+    } else{\r
         NextDelim++;\r
-         }\r
+    }\r
     }\r
   }\r
 \r
@@ -181,7 +181,7 @@ DEBUG_CODE_END();
   parameters for inclusion in EFI_SHELL_PARAMETERS_PROTOCOL.  this supports space\r
   delimited and quote surrounded parameter definition.\r
 \r
-  All special character processing (alias, environment variable, redirection, \r
+  All special character processing (alias, environment variable, redirection,\r
   etc... must be complete before calling this API.\r
 \r
   @param[in] CommandLine          String of command line to parse\r
@@ -269,7 +269,7 @@ ParseCommandLineToArgs(
   }\r
   ASSERT(Count >= (*Argc));\r
   Status = EFI_SUCCESS;\r
-  \r
+\r
 Done:\r
   SHELL_FREE_NON_NULL(TempParameter);\r
   SHELL_FREE_NON_NULL(NewCommandLine);\r
@@ -503,7 +503,7 @@ IsUnicodeFile(
   }\r
   gEfiShellProtocol->SetFilePosition(Handle, OriginalFilePosition);\r
   gEfiShellProtocol->CloseFile(Handle);\r
-  return (Status);  \r
+  return (Status);\r
 }\r
 \r
 /**\r
@@ -580,7 +580,7 @@ FixFileName (
     Copy = FileName+1;\r
     if ((TempLocation = StrStr(Copy , L"\"")) != NULL) {\r
       TempLocation[0] = CHAR_NULL;\r
-    }    \r
+    }\r
   } else {\r
     Copy = FileName;\r
     while(Copy[0] == L' ') {\r
@@ -588,7 +588,7 @@ FixFileName (
     }\r
     if ((TempLocation = StrStr(Copy , L" ")) != NULL) {\r
       TempLocation[0] = CHAR_NULL;\r
-    }    \r
+    }\r
   }\r
 \r
   if (Copy[0] == CHAR_NULL) {\r
@@ -620,7 +620,7 @@ FixVarName (
     Copy = FileName+1;\r
     if ((TempLocation = StrStr(Copy , L"%")) != NULL) {\r
       TempLocation[0] = CHAR_NULL;\r
-    }    \r
+    }\r
   }\r
 \r
   return (FixFileName(Copy));\r
@@ -629,9 +629,9 @@ FixVarName (
 /**\r
   Remove the unicode file tag from the begining of the file buffer since that will not be\r
   used by StdIn.\r
-  \r
+\r
   @param[in]  Handle    Pointer to the handle of the file to be processed.\r
-  \r
+\r
   @retval EFI_SUCCESS   The unicode file tag has been moved successfully.\r
 **/\r
 EFI_STATUS\r
@@ -837,7 +837,7 @@ UpdateStdInStdOutStdErr(
     if (StrStr(CommandLineWalker, L" 1>> ") != NULL) {\r
       Status = EFI_NOT_FOUND;\r
     }\r
-  } \r
+  }\r
   if (!EFI_ERROR(Status) && (CommandLineWalker = StrStr(CommandLineCopy, L" >> ")) != NULL) {\r
     FirstLocation = MIN(CommandLineWalker, FirstLocation);\r
     SetMem16(CommandLineWalker, 8, L' ');\r
@@ -864,7 +864,7 @@ UpdateStdInStdOutStdErr(
     if (StrStr(CommandLineWalker, L" >>a ") != NULL) {\r
       Status = EFI_NOT_FOUND;\r
     }\r
-  } \r
+  }\r
   if (!EFI_ERROR(Status) && (CommandLineWalker = StrStr(CommandLineCopy, L" 1>a ")) != NULL) {\r
     FirstLocation = MIN(CommandLineWalker, FirstLocation);\r
     SetMem16(CommandLineWalker, 10, L' ');\r
@@ -878,7 +878,7 @@ UpdateStdInStdOutStdErr(
     if (StrStr(CommandLineWalker, L" 1>a ") != NULL) {\r
       Status = EFI_NOT_FOUND;\r
     }\r
-  } \r
+  }\r
   if (!EFI_ERROR(Status) && (CommandLineWalker = StrStr(CommandLineCopy, L" >a ")) != NULL) {\r
     FirstLocation = MIN(CommandLineWalker, FirstLocation);\r
     SetMem16(CommandLineWalker, 8, L' ');\r
@@ -1107,7 +1107,7 @@ UpdateStdInStdOutStdErr(
       //\r
       // Cant redirect during a reconnect operation.\r
       //\r
-      ||(StrStr(NewCommandLine, L"connect -r") != NULL \r
+      ||(StrStr(NewCommandLine, L"connect -r") != NULL\r
          && (StdOutVarName != NULL || StdOutFileName != NULL || StdErrFileName != NULL || StdErrVarName != NULL))\r
       //\r
       // Check that filetypes (Unicode/Ascii) do not change during an append\r
@@ -1307,7 +1307,7 @@ RestoreStdInStdOutStdErr (
 {\r
   SPLIT_LIST        *Split;\r
 \r
-  if (ShellParameters == NULL \r
+  if (ShellParameters == NULL\r
     ||OldStdIn        == NULL\r
     ||OldStdOut       == NULL\r
     ||OldStdErr       == NULL\r
@@ -1382,7 +1382,7 @@ UpdateArgcArgv(
   )\r
 {\r
   BOOLEAN                 StripParamQuotation;\r
-  \r
+\r
   ASSERT(ShellParameters != NULL);\r
   StripParamQuotation = TRUE;\r
 \r
@@ -1396,10 +1396,10 @@ UpdateArgcArgv(
   if (Type == Script_File_Name) {\r
     StripParamQuotation = FALSE;\r
   }\r
-  \r
-  return ParseCommandLineToArgs( NewCommandLine, \r
-                                 StripParamQuotation, \r
-                                 &(ShellParameters->Argv), \r
+\r
+  return ParseCommandLineToArgs( NewCommandLine,\r
+                                 StripParamQuotation,\r
+                                 &(ShellParameters->Argv),\r
                                  &(ShellParameters->Argc)\r
                                 );\r
 }\r
index d8b1e065e00a05243b6ece0ff1cf4e4ba01d0162..f2ca2029e368f61cb17e77b7c9d7fbc919a4c177 100644 (file)
@@ -4,7 +4,7 @@
 \r
   (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
   (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
-  Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -1422,7 +1422,7 @@ EfiShellEnablePageBreak (
                                 variables with the format 'x=y', where x is the\r
                                 environment variable name and y is the value. If this\r
                                 is NULL, then the current shell environment is used.\r
-                            \r
+\r
   @param[out] StartImageStatus  Returned status from gBS->StartImage.\r
 \r
   @retval EFI_SUCCESS       The command executed successfully. The  status code\r
@@ -1460,7 +1460,7 @@ InternalShellExecuteDevicePath(
   ZeroMem(&ShellParamsProtocol, sizeof(EFI_SHELL_PARAMETERS_PROTOCOL));\r
 \r
   NewHandle = NULL;\r
-  \r
+\r
   NewCmdLine = AllocateCopyPool (StrSize (CommandLine), CommandLine);\r
   if (NewCmdLine == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r
@@ -1505,8 +1505,8 @@ InternalShellExecuteDevicePath(
     //\r
     if (LoadedImage->ImageCodeType != EfiLoaderCode){\r
       ShellPrintHiiEx(\r
-        -1, \r
-        -1, \r
+        -1,\r
+        -1,\r
         NULL,\r
         STRING_TOKEN (STR_SHELL_IMAGE_NOT_APP),\r
         ShellInfoObject.HiiHandle\r
@@ -1630,7 +1630,7 @@ FreeAlloc:
                                 variables with the format 'x=y', where x is the\r
                                 environment variable name and y is the value. If this\r
                                 is NULL, then the current shell environment is used.\r
-                \r
+\r
   @param[out] StartImageStatus  Returned status from the command line.\r
 \r
   @retval EFI_SUCCESS       The command executed successfully. The  status code\r
@@ -2210,7 +2210,7 @@ EfiShellGetGuidFromName(
   if (Guid == NULL || GuidName == NULL) {\r
     return (EFI_INVALID_PARAMETER);\r
   }\r
\r
+\r
   Status = GetGuidFromStringName(GuidName, NULL, &NewGuid);\r
 \r
   if (!EFI_ERROR(Status)) {\r
@@ -2762,8 +2762,8 @@ EfiShellGetEnvEx(
       ; Node = (ENV_VAR_LIST*)GetNextNode(&gShellEnvVarList.Link, &Node->Link)\r
      ){\r
       ASSERT(Node->Key != NULL);\r
-      StrCpyS( CurrentWriteLocation, \r
-                (Size)/sizeof(CHAR16) - (CurrentWriteLocation - ((CHAR16*)Buffer)), \r
+      StrCpyS( CurrentWriteLocation,\r
+                (Size)/sizeof(CHAR16) - (CurrentWriteLocation - ((CHAR16*)Buffer)),\r
                 Node->Key\r
                 );\r
       CurrentWriteLocation += StrLen(CurrentWriteLocation) + 1;\r
@@ -3233,9 +3233,9 @@ EfiShellGetHelpText(
         return EFI_OUT_OF_RESOURCES;\r
       }\r
 \r
-      StrnCpyS( FixCommand, \r
-                (StrSize(Command) - 4 * sizeof (CHAR16))/sizeof(CHAR16), \r
-                Command, \r
+      StrnCpyS( FixCommand,\r
+                (StrSize(Command) - 4 * sizeof (CHAR16))/sizeof(CHAR16),\r
+                Command,\r
                 StrLen(Command)-4\r
                 );\r
       Status = ProcessManFile(FixCommand, FixCommand, Sections, NULL, HelpText);\r
@@ -3295,7 +3295,7 @@ InternalEfiShellGetListAlias(
   VOID\r
   )\r
 {\r
-  \r
+\r
   EFI_STATUS        Status;\r
   EFI_GUID          Guid;\r
   CHAR16            *VariableName;\r
@@ -3330,17 +3330,17 @@ InternalEfiShellGetListAlias(
         RetVal = NULL;\r
         break;\r
       }\r
-      \r
+\r
       NameSize = NameBufferSize;\r
       Status = gRT->GetNextVariableName(&NameSize, VariableName, &Guid);\r
     }\r
-    \r
+\r
     if (EFI_ERROR (Status)) {\r
       SHELL_FREE_NON_NULL(RetVal);\r
       RetVal = NULL;\r
       break;\r
     }\r
-    \r
+\r
     if (CompareGuid(&Guid, &gShellAliasGuid)){\r
       ASSERT((RetVal == NULL && RetSize == 0) || (RetVal != NULL));\r
       RetVal = StrnCatGrow(&RetVal, &RetSize, VariableName, 0);\r
@@ -3355,10 +3355,10 @@ InternalEfiShellGetListAlias(
 /**\r
   Convert a null-terminated unicode string, in-place, to all lowercase.\r
   Then return it.\r
-  \r
+\r
   @param  Str    The null-terminated string to be converted to all lowercase.\r
-  \r
-  @return        The null-terminated string converted into all lowercase.  \r
+\r
+  @return        The null-terminated string converted into all lowercase.\r
 **/\r
 CHAR16 *\r
 ToLower (\r
@@ -3385,7 +3385,7 @@ ToLower (
   @param[out] Volatile          upon return of a single command if TRUE indicates\r
                                 this is stored in a volatile fashion.  FALSE otherwise.\r
 \r
-  @return                              If Alias is not NULL, it will return a pointer to\r
+  @return                        If Alias is not NULL, it will return a pointer to\r
                                 the NULL-terminated command for that alias.\r
                                 If Alias is NULL, ReturnedData points to a ';'\r
                                 delimited list of alias (e.g.\r
@@ -3801,7 +3801,7 @@ CleanUpShellEnvironment (
 {\r
   EFI_STATUS                        Status;\r
   EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *SimpleEx;\r
-  \r
+\r
   CleanUpShellProtocol (NewShell);\r
 \r
   Status = gBS->CloseEvent(NewShell->ExecutionBreak);\r
@@ -3844,21 +3844,21 @@ NotificationFunction(
   if ( ((KeyData->Key.UnicodeChar == L'c') &&\r
         (KeyData->KeyState.KeyShiftState == (EFI_SHIFT_STATE_VALID|EFI_LEFT_CONTROL_PRESSED) || KeyData->KeyState.KeyShiftState  == (EFI_SHIFT_STATE_VALID|EFI_RIGHT_CONTROL_PRESSED))) ||\r
       (KeyData->Key.UnicodeChar == 3)\r
-      ){ \r
+      ){\r
     if (ShellInfoObject.NewEfiShellProtocol->ExecutionBreak == NULL) {\r
       return (EFI_UNSUPPORTED);\r
     }\r
     return (gBS->SignalEvent(ShellInfoObject.NewEfiShellProtocol->ExecutionBreak));\r
   } else if  ((KeyData->Key.UnicodeChar == L's') &&\r
               (KeyData->KeyState.KeyShiftState  == (EFI_SHIFT_STATE_VALID|EFI_LEFT_CONTROL_PRESSED) || KeyData->KeyState.KeyShiftState  == (EFI_SHIFT_STATE_VALID|EFI_RIGHT_CONTROL_PRESSED))\r
-              ){ \r
+              ){\r
     ShellInfoObject.HaltOutput = TRUE;\r
   }\r
   return (EFI_SUCCESS);\r
 }\r
 \r
 /**\r
-  Function to start monitoring for CTRL-C using SimpleTextInputEx.  This \r
+  Function to start monitoring for CTRL-C using SimpleTextInputEx.  This\r
   feature's enabled state was not known when the shell initially launched.\r
 \r
   @retval EFI_SUCCESS           The feature is enabled.\r
@@ -3882,8 +3882,8 @@ InernalEfiShellStartMonitor(
     EFI_OPEN_PROTOCOL_GET_PROTOCOL);\r
   if (EFI_ERROR(Status)) {\r
     ShellPrintHiiEx(\r
-      -1, \r
-      -1, \r
+      -1,\r
+      -1,\r
       NULL,\r
       STRING_TOKEN (STR_SHELL_NO_IN_EX),\r
       ShellInfoObject.HiiHandle);\r
@@ -3904,7 +3904,7 @@ InernalEfiShellStartMonitor(
     &KeyData,\r
     NotificationFunction,\r
     &ShellInfoObject.CtrlCNotifyHandle1);\r
-  \r
+\r
   KeyData.KeyState.KeyShiftState  = EFI_SHIFT_STATE_VALID|EFI_RIGHT_CONTROL_PRESSED;\r
   if (!EFI_ERROR(Status)) {\r
     Status = SimpleEx->RegisterKeyNotify(\r
index 755a402c984e61a591ec2539b205c2e3cf77439e..2cb7b0337cdb6057429d1a6fad8787869b477a04 100644 (file)
@@ -3,7 +3,7 @@
   manipulation, and initialization of EFI_SHELL_PROTOCOL.\r
 \r
   (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -36,7 +36,7 @@ typedef struct {
 \r
   This must be removed via calling CleanUpShellProtocol().\r
 \r
-  @param[in, out] NewShell   The pointer to the pointer to the structure \r
+  @param[in, out] NewShell   The pointer to the pointer to the structure\r
   to install.\r
 \r
   @retval EFI_SUCCESS     The operation was successful.\r
@@ -819,7 +819,7 @@ EfiShellIsRootShell(
                                 aliases will be returned in ReturnedData.\r
   @param[out] Volatile          upon return of a single command if TRUE indicates\r
                                 this is stored in a volatile fashion.  FALSE otherwise.\r
-  @return                              If Alias is not NULL, it will return a pointer to\r
+  @return                        If Alias is not NULL, it will return a pointer to\r
                                 the NULL-terminated command for that alias.\r
                                 If Alias is NULL, ReturnedData points to a ';'\r
                                 delimited list of alias (e.g.\r
@@ -917,7 +917,7 @@ InternalEfiShellSetEnv(
   );\r
 \r
 /**\r
-  Function to start monitoring for CTRL-C using SimpleTextInputEx.  This \r
+  Function to start monitoring for CTRL-C using SimpleTextInputEx.  This\r
   feature's enabled state was not known when the shell initially launched.\r
 \r
   @retval EFI_SUCCESS           The feature is enabled.\r
index 7814bb8386056a0c6aae1cb468cdda2ec81e1adc..02594e0d12082fb9da357968323aac43beb615bb 100644 (file)
@@ -2,4 +2,4 @@ TestArgv.nsh is a very simple shell script to test how the interpreter parses
 the parameters. It uses ShellCTestApp.efi to dump the parameters passed from the\r
 intepreter.\r
 \r
-TestArgv.log is the desired output created using "TestArgv.nsh > TestArgv.log".
\ No newline at end of file
+TestArgv.log is the desired output created using "TestArgv.nsh > TestArgv.log".\r
index 4839b9fd97a39065591532d17f2ebddd2aa8c9c8..3f266bd9a06073173f6377e5176b775d22054c76 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 #  This is the shell application\r
 #\r
-#  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -36,4 +36,4 @@
 \r
 [LibraryClasses]\r
   ShellCEntryLib\r
-  UefiLib
\ No newline at end of file
+  UefiLib\r
index 925341303a4280f9804caf51554452d2a37315cf..a906808ab312a84381afe7d68b88414e188e8751 100644 (file)
   and start and end time values.\r
   Dp uses this information to group records in different ways.  It also uses\r
   timer information to calculate elapsed time for each measurement.\r
\r
+\r
   Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.\r
   (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP<BR>\r
   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
   http://opensource.org/licenses/bsd-license.php\r
\r
+\r
   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 **/\r
@@ -741,10 +741,10 @@ InitSummaryData (
 \r
 /**\r
   Dump performance data.\r
-  \r
+\r
   @param[in]  ImageHandle     The image handle.\r
   @param[in]  SystemTable     The system table.\r
-  \r
+\r
   @retval SHELL_SUCCESS            Command completed successfully.\r
   @retval SHELL_INVALID_PARAMETER  Command usage error.\r
   @retval SHELL_ABORTED            The user aborts the operation.\r
@@ -952,7 +952,7 @@ RunDp (
 ****    Cooked (Default)\r
 ****************************************************************************/\r
   GatherStatistics (CustomCumulativeData);\r
-  if (CumulativeMode) {                       \r
+  if (CumulativeMode) {\r
     ProcessCumulative (CustomCumulativeData);\r
   } else if (AllMode) {\r
     Status = DumpAllTrace( Number2Display, ExcludeMode);\r
index ced8a487428504ce16b18617c7b948f7f2d681ed..e66d9ac6bc5a733e8394821878a589e03dc498fa 100644 (file)
@@ -7,7 +7,7 @@
 // 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
 // http://opensource.org/licenses/bsd-license.php\r
-// \r
+//\r
 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 //\r
 "  -t VALUE - Sets display threshold to VALUE microseconds\r\n"\r
 "  -n COUNT - Limits display to COUNT lines in All and Raw modes\r\n"\r
 "  -i       - Displays identifier\r\n"\r
-"  -c TOKEN - Display pre-defined and custom cumulative data\r\n" \r
+"  -c TOKEN - Display pre-defined and custom cumulative data\r\n"\r
 "             Pre-defined cumulative token are:\r\n"\r
 "             1. LoadImage:\r\n"\r
 "             2. StartImage:\r\n"\r
index d8bc7453d2d6a74ca09cac84bea5626a262f169e..d5eb4229c786fcf1736bcbf17da31aebaaf531dd 100644 (file)
@@ -44,24 +44,24 @@ extern UINT32 const       NumCum;
 \r
 ///@}\r
 \r
-/** \r
+/**\r
   Calculate an event's duration in timer ticks.\r
-  \r
+\r
   Given the count direction and the event's start and end timer values,\r
   calculate the duration of the event in timer ticks.  Information for\r
   the current measurement is pointed to by the parameter.\r
-  \r
+\r
   If the measurement's start time is 1, it indicates that the developer\r
   is indicating that the measurement began at the release of reset.\r
   The start time is adjusted to the timer's starting count before performing\r
   the elapsed time calculation.\r
-  \r
+\r
   The calculated duration, in ticks, is the absolute difference between\r
   the measurement's ending and starting counts.\r
-  \r
+\r
   @param Measurement   Pointer to a MEASUREMENT_RECORD structure containing\r
                        data for the current measurement.\r
-  \r
+\r
   @return              The 64-bit duration of the event.\r
 **/\r
 UINT64\r
@@ -69,14 +69,14 @@ GetDuration (
   IN OUT MEASUREMENT_RECORD *Measurement\r
   );\r
 \r
-/** \r
+/**\r
   Determine whether the Measurement record is for an EFI Phase.\r
-  \r
+\r
   The Token and Module members of the measurement record are checked.\r
   Module must be empty and Token must be one of SEC, PEI, DXE, BDS, or SHELL.\r
-  \r
+\r
   @param[in]  Measurement A pointer to the Measurement record to test.\r
-  \r
+\r
   @retval     TRUE        The measurement record is for an EFI Phase.\r
   @retval     FALSE       The measurement record is NOT for an EFI Phase.\r
 **/\r
@@ -99,17 +99,17 @@ IsCorePerf(
   IN MEASUREMENT_RECORD        *Measurement\r
   );\r
 \r
-/** \r
+/**\r
   Get the file name portion of the Pdb File Name.\r
-  \r
+\r
   The portion of the Pdb File Name between the last backslash and\r
   either a following period or the end of the string is converted\r
   to Unicode and copied into UnicodeBuffer.  The name is truncated,\r
   if necessary, to ensure that UnicodeBuffer is not overrun.\r
-  \r
+\r
   @param[in]  PdbFileName     Pdb file name.\r
   @param[out] UnicodeBuffer   The resultant Unicode File Name.\r
-  \r
+\r
 **/\r
 VOID\r
 DpGetShortPdbFileName (\r
@@ -117,7 +117,7 @@ DpGetShortPdbFileName (
   OUT CHAR16    *UnicodeBuffer\r
   );\r
 \r
-/** \r
+/**\r
   Get a human readable name for an image handle.\r
   The following methods will be tried orderly:\r
     1. Image PDB\r
@@ -126,29 +126,29 @@ DpGetShortPdbFileName (
     4. Image GUID\r
     5. Image DevicePath\r
     6. Unknown Driver Name\r
-  \r
+\r
   @param[in]    Handle\r
-  \r
+\r
   @post   The resulting Unicode name string is stored in the\r
           mGaugeString global array.\r
-  \r
+\r
 **/\r
 VOID\r
 DpGetNameFromHandle (\r
   IN EFI_HANDLE Handle\r
   );\r
 \r
-/** \r
+/**\r
   Calculate the Duration in microseconds.\r
-  \r
+\r
   Duration is multiplied by 1000, instead of Frequency being divided by 1000 or\r
   multiplying the result by 1000, in order to maintain precision.  Since Duration is\r
   a 64-bit value, multiplying it by 1000 is unlikely to produce an overflow.\r
-  \r
+\r
   The time is calculated as (Duration * 1000) / Timer_Frequency.\r
-  \r
+\r
   @param[in]  Duration   The event duration in timer ticks.\r
-  \r
+\r
   @return     A 64-bit value which is the Elapsed time in microseconds.\r
 **/\r
 UINT64\r
@@ -156,16 +156,16 @@ DurationInMicroSeconds (
   IN UINT64 Duration\r
   );\r
 \r
-/** \r
+/**\r
   Get index of Measurement Record's match in the CumData array.\r
-  \r
+\r
   If the Measurement's Token value matches a Token in one of the CumData\r
   records, the index of the matching record is returned.  The returned\r
   index is a signed value so that negative values can indicate that\r
   the Measurement didn't match any entry in the CumData array.\r
-  \r
+\r
   @param[in]  Measurement A pointer to a Measurement Record to match against the CumData array.\r
-  \r
+\r
   @retval     <0    Token is not in the CumData array.\r
   @retval     >=0   Return value is the index into CumData where Token is found.\r
 **/\r
@@ -174,17 +174,17 @@ GetCumulativeItem(
   IN MEASUREMENT_RECORD *Measurement\r
   );\r
 \r
-/** \r
+/**\r
   Collect verbose statistics about the logged performance measurements.\r
-  \r
+\r
   General Summary information for all Trace measurements is gathered and\r
   stored within the SummaryData structure.  This information is both\r
   used internally by subsequent reporting functions, and displayed\r
   at the end of verbose reports.\r
-  \r
+\r
   @pre  The SummaryData and CumData structures must be initialized\r
         prior to calling this function.\r
-  \r
+\r
   @post The SummaryData and CumData structures contain statistics for the\r
         current performance logs.\r
 \r
@@ -196,23 +196,23 @@ GatherStatistics(
   IN OUT PERF_CUM_DATA              *CustomCumulativeData OPTIONAL\r
   );\r
 \r
-/** \r
+/**\r
   Gather and print ALL Trace Records.\r
-  \r
+\r
   Displays all "interesting" Trace measurements in order.<BR>\r
   The number of records displayed is controlled by:\r
      - records with a duration less than mInterestThreshold microseconds are not displayed.\r
      - No more than Limit records are displayed.  A Limit of zero will not limit the output.\r
      - If the ExcludeFlag is TRUE, records matching entries in the CumData array are not\r
        displayed.\r
-  \r
+\r
   @pre    The mInterestThreshold global variable is set to the shortest duration to be printed.\r
            The mGaugeString and mUnicodeToken global arrays are used for temporary string storage.\r
            They must not be in use by a calling function.\r
-  \r
+\r
   @param[in]    Limit       The number of records to print.  Zero is ALL.\r
   @param[in]    ExcludeFlag TRUE to exclude individual Cumulative items from display.\r
-  \r
+\r
   @retval EFI_SUCCESS           The operation was successful.\r
   @retval EFI_ABORTED           The user aborts the operation.\r
   @return Others                from a call to gBS->LocateHandleBuffer().\r
@@ -223,20 +223,20 @@ DumpAllTrace(
   IN BOOLEAN           ExcludeFlag\r
   );\r
 \r
-/** \r
+/**\r
   Gather and print Raw Trace Records.\r
-  \r
+\r
   All Trace measurements with a duration greater than or equal to\r
   mInterestThreshold are printed without interpretation.\r
-  \r
+\r
   The number of records displayed is controlled by:\r
      - records with a duration less than mInterestThreshold microseconds are not displayed.\r
      - No more than Limit records are displayed.  A Limit of zero will not limit the output.\r
      - If the ExcludeFlag is TRUE, records matching entries in the CumData array are not\r
        displayed.\r
-  \r
+\r
   @pre    The mInterestThreshold global variable is set to the shortest duration to be printed.\r
-  \r
+\r
   @param[in]    Limit       The number of records to print.  Zero is ALL.\r
   @param[in]    ExcludeFlag TRUE to exclude individual Cumulative items from display.\r
   @retval EFI_SUCCESS           The operation was successful.\r
@@ -248,9 +248,9 @@ DumpRawTrace(
   IN BOOLEAN        ExcludeFlag\r
   );\r
 \r
-/** \r
+/**\r
   Gather and print Major Phase metrics.\r
-  \r
+\r
 **/\r
 VOID\r
 ProcessPhases(\r
@@ -258,11 +258,11 @@ ProcessPhases(
   );\r
 \r
 \r
-/** \r
+/**\r
   Gather and print Handle data.\r
-  \r
+\r
   @param[in]    ExcludeFlag   TRUE to exclude individual Cumulative items from display.\r
-  \r
+\r
   @retval EFI_SUCCESS             The operation was successful.\r
   @retval EFI_ABORTED             The user aborts the operation.\r
   @return Others                  from a call to gBS->LocateHandleBuffer().\r
@@ -273,11 +273,11 @@ ProcessHandles(
   );\r
 \r
 \r
-/** \r
+/**\r
   Gather and print PEIM data.\r
-  \r
+\r
   Only prints complete PEIM records\r
-  \r
+\r
   @retval EFI_SUCCESS           The operation was successful.\r
   @retval EFI_ABORTED           The user aborts the operation.\r
 **/\r
@@ -286,14 +286,14 @@ ProcessPeims(
   VOID\r
   );\r
 \r
-/** \r
+/**\r
   Gather and print global data.\r
-  \r
+\r
   Strips out incomplete or "Execution Phase" records\r
   Only prints records where Handle is NULL\r
   Increment TIndex for every record, even skipped ones, so that we have an\r
   indication of every measurement record taken.\r
-  \r
+\r
   @retval EFI_SUCCESS           The operation was successful.\r
   @retval EFI_ABORTED           The user aborts the operation.\r
 **/\r
@@ -302,16 +302,16 @@ ProcessGlobal(
   VOID\r
   );\r
 \r
-/** \r
+/**\r
   Gather and print cumulative data.\r
-  \r
+\r
   Traverse the measurement records and:<BR>\r
   For each record with a Token listed in the CumData array:<BR>\r
      - Update the instance count and the total, minimum, and maximum durations.\r
   Finally, print the gathered cumulative statistics.\r
 \r
   @param[in]    CustomCumulativeData  The pointer to the custom cumulative data.\r
-  \r
+\r
 **/\r
 VOID\r
 ProcessCumulative(\r
index 5c6ab209d5abff59b4e1cd1443097c3935ab4386..25311860efd0330add103dca10d3285104b9a187 100644 (file)
 #include "Literals.h"\r
 #include "DpInternal.h"\r
 \r
-/** \r
+/**\r
   Calculate an event's duration in timer ticks.\r
-  \r
+\r
   Given the count direction and the event's start and end timer values,\r
   calculate the duration of the event in timer ticks.  Information for\r
   the current measurement is pointed to by the parameter.\r
-  \r
+\r
   If the measurement's start time is 1, it indicates that the developer\r
   is indicating that the measurement began at the release of reset.\r
   The start time is adjusted to the timer's starting count before performing\r
   the elapsed time calculation.\r
-  \r
+\r
   The calculated duration, in ticks, is the absolute difference between\r
   the measurement's ending and starting counts.\r
-  \r
+\r
   @param Measurement   Pointer to a MEASUREMENT_RECORD structure containing\r
                        data for the current measurement.\r
-  \r
+\r
   @return              The 64-bit duration of the event.\r
 **/\r
 UINT64\r
@@ -81,14 +81,14 @@ GetDuration (
   return Duration;\r
 }\r
 \r
-/** \r
+/**\r
   Determine whether the Measurement record is for an EFI Phase.\r
-  \r
+\r
   The Token and Module members of the measurement record are checked.\r
   Module must be empty and Token must be one of SEC, PEI, DXE, BDS, or SHELL.\r
-  \r
+\r
   @param[in]  Measurement A pointer to the Measurement record to test.\r
-  \r
+\r
   @retval     TRUE        The measurement record is for an EFI Phase.\r
   @retval     FALSE       The measurement record is NOT for an EFI Phase.\r
 **/\r
@@ -139,17 +139,17 @@ IsCorePerf(
   return RetVal;\r
 }\r
 \r
-/** \r
+/**\r
   Get the file name portion of the Pdb File Name.\r
-  \r
+\r
   The portion of the Pdb File Name between the last backslash and\r
   either a following period or the end of the string is converted\r
   to Unicode and copied into UnicodeBuffer.  The name is truncated,\r
   if necessary, to ensure that UnicodeBuffer is not overrun.\r
-  \r
+\r
   @param[in]  PdbFileName     Pdb file name.\r
   @param[out] UnicodeBuffer   The resultant Unicode File Name.\r
-  \r
+\r
 **/\r
 VOID\r
 DpGetShortPdbFileName (\r
@@ -192,7 +192,7 @@ DpGetShortPdbFileName (
   }\r
 }\r
 \r
-/** \r
+/**\r
   Get a human readable name for an image handle.\r
   The following methods will be tried orderly:\r
     1. Image PDB\r
@@ -377,17 +377,17 @@ DpGetNameFromHandle (
   FreePool (StringPtr);\r
 }\r
 \r
-/** \r
+/**\r
   Calculate the Duration in microseconds.\r
-  \r
+\r
   Duration is multiplied by 1000, instead of Frequency being divided by 1000 or\r
   multiplying the result by 1000, in order to maintain precision.  Since Duration is\r
   a 64-bit value, multiplying it by 1000 is unlikely to produce an overflow.\r
-  \r
+\r
   The time is calculated as (Duration * 1000) / Timer_Frequency.\r
-  \r
+\r
   @param[in]  Duration   The event duration in timer ticks.\r
-  \r
+\r
   @return     A 64-bit value which is the Elapsed time in microseconds.\r
 **/\r
 UINT64\r
@@ -398,16 +398,16 @@ DurationInMicroSeconds (
   return DivU64x32 (Duration, 1000);\r
 }\r
 \r
-/** \r
+/**\r
   Get index of Measurement Record's match in the CumData array.\r
-  \r
+\r
   If the Measurement's Token value matches a Token in one of the CumData\r
   records, the index of the matching record is returned.  The returned\r
   index is a signed value so that negative values can indicate that\r
   the Measurement didn't match any entry in the CumData array.\r
-  \r
+\r
   @param[in]  Measurement A pointer to a Measurement Record to match against the CumData array.\r
-  \r
+\r
   @retval     <0    Token is not in the CumData array.\r
   @retval     >=0   Return value is the index into CumData where Token is found.\r
 **/\r
index 8569c966ddf3be4c7e4dd039f852429c3588111c..e2491cd54cae5b5e970cb020bd8c3aed1493e121 100644 (file)
@@ -2,7 +2,7 @@
   The implementation for the 'tftp' Shell command.\r
 \r
   Copyright (c) 2015, ARM Ltd. All rights reserved.<BR>\r
-  Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved. <BR>\r
   (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
 \r
   This program and the accompanying materials\r
@@ -50,8 +50,8 @@ STATIC CONST CHAR16 mTftpProgressDelete[] = L"\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b
   @return     TRUE      The value was returned.\r
   @return     FALSE     A parsing error occured.\r
 **/\r
-STATIC \r
-BOOLEAN \r
+STATIC\r
+BOOLEAN\r
 StringToUint16 (\r
   IN   CONST CHAR16  *ValueStr,\r
   OUT  UINT16        *Value\r
@@ -64,7 +64,7 @@ StringToUint16 (
   @param[in]   NicNumber         The network physical device number.\r
   @param[out]  NicName           Address where to store the NIC name.\r
                                  The memory area has to be at least\r
-                                 IP4_CONFIG2_INTERFACE_INFO_NAME_LENGTH \r
+                                 IP4_CONFIG2_INTERFACE_INFO_NAME_LENGTH\r
                                  double byte wide.\r
 \r
   @return  EFI_SUCCESS  The name of the NIC was returned.\r
@@ -75,8 +75,8 @@ StringToUint16 (
                         Managed Network Protocol could not be\r
                         read.\r
 **/\r
-STATIC \r
-EFI_STATUS \r
+STATIC\r
+EFI_STATUS\r
 GetNicName (\r
   IN   EFI_HANDLE  ControllerHandle,\r
   IN   UINTN       NicNumber,\r
@@ -102,8 +102,8 @@ GetNicName (
   @return  Others       Either the creation of the child or the opening\r
                         of the protocol failed.\r
 **/\r
-STATIC \r
-EFI_STATUS \r
+STATIC\r
+EFI_STATUS\r
 CreateServiceChildAndOpenProtocol (\r
   IN   EFI_HANDLE  ControllerHandle,\r
   IN   EFI_GUID    *ServiceBindingProtocolGuid,\r
@@ -124,8 +124,8 @@ CreateServiceChildAndOpenProtocol (
   @param[in]  ChildHandle                 Handle of the child to be destroyed.\r
 \r
 **/\r
-STATIC \r
-VOID \r
+STATIC\r
+VOID\r
 CloseProtocolAndDestroyServiceChild (\r
   IN  EFI_HANDLE  ControllerHandle,\r
   IN  EFI_GUID    *ServiceBindingProtocolGuid,\r
@@ -148,8 +148,8 @@ CloseProtocolAndDestroyServiceChild (
                             (see EFI_MTFTP4_PROTOCOL.GetInfo() status codes)\r
                             or error when parsing the response of the server.\r
 **/\r
-STATIC \r
-EFI_STATUS \r
+STATIC\r
+EFI_STATUS\r
 GetFileSize (\r
   IN   EFI_MTFTP4_PROTOCOL  *Mtftp4,\r
   IN   CONST CHAR8          *FilePath,\r
@@ -175,8 +175,8 @@ GetFileSize (
                                  (see EFI_MTFTP4_PROTOCOL.ReadFile() status codes).\r
 \r
 **/\r
-STATIC \r
-EFI_STATUS \r
+STATIC\r
+EFI_STATUS\r
 DownloadFile (\r
   IN   EFI_MTFTP4_PROTOCOL  *Mtftp4,\r
   IN   CONST CHAR16         *FilePath,\r
@@ -198,8 +198,8 @@ DownloadFile (
   @retval  EFI_SUCCESS  All packets are accepted.\r
 \r
 **/\r
-STATIC \r
-EFI_STATUS \r
+STATIC\r
+EFI_STATUS\r
 EFIAPI\r
 CheckPacket (\r
   IN EFI_MTFTP4_PROTOCOL  *This,\r
@@ -623,7 +623,7 @@ StringToUint16 (
   @param[in]   NicNumber         The network physical device number.\r
   @param[out]  NicName           Address where to store the NIC name.\r
                                  The memory area has to be at least\r
-                                 IP4_CONFIG2_INTERFACE_INFO_NAME_LENGTH \r
+                                 IP4_CONFIG2_INTERFACE_INFO_NAME_LENGTH\r
                                  double byte wide.\r
 \r
   @return  EFI_SUCCESS  The name of the NIC was returned.\r
index 180a41bf5340fb45f298003a1246388ad2cdc686..1d544621b7488b0900bcb194193d00ba790626ea 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   GUID for Shell Map for Get/Set via runtime services.\r
 \r
-  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -22,4 +22,4 @@
 \r
 extern EFI_GUID gShellMapGuid;\r
 \r
-#endif
\ No newline at end of file
+#endif\r
index 64161281c518dfba19231ac17f298d78dc30c857..176525245af009da4f88aab1b097d40bb5a22424 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Provides interface to advanced shell functionality for parsing both handle and protocol database.\r
 \r
-  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -120,9 +120,9 @@ GetStringNameFromHandle(
 \r
 /**\r
   Get best support language for this driver.\r
-  \r
-  First base on the user input language  to search, second base on the current \r
-  platform used language to search, third get the first language from the \r
+\r
+  First base on the user input language  to search, second base on the current\r
+  platform used language to search, third get the first language from the\r
   support language list. The caller need to free the buffer of the best language.\r
 \r
   @param[in] SupportedLanguages      The support languages for this driver.\r
index 616b0d3267f609199767bab6743c6d9636098a90..1a7161627bf1f8afecd80e2560dcd834d3a1f8a5 100644 (file)
@@ -4,7 +4,7 @@
   This library is for use ONLY by shell commands linked into the shell application.\r
   This library will not function if it is used for UEFI Shell 2.0 Applications.\r
 \r
-  Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
   (C) Copyright 2013-2014 Hewlett-Packard Development Company, L.P.<BR>\r
   This program and the accompanying materials\r
@@ -507,10 +507,10 @@ ShellCommandConsistMappingUnInitialize (
   );\r
 \r
 /**\r
-  Create a consistent mapped name for the device specified by DevicePath \r
+  Create a consistent mapped name for the device specified by DevicePath\r
   based on the Table.\r
 \r
-  This must be called after ShellCommandConsistMappingInitialize() and \r
+  This must be called after ShellCommandConsistMappingInitialize() and\r
   before ShellCommandConsistMappingUnInitialize() is called.\r
 \r
   @param[in] DevicePath   The pointer to the dev path for the device.\r
index 268a767b70c44ae63f4bbde9ce6fa48389ec2c58..e360a67ac75199a2a3e5816736be1a83f4d897ac 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Provides interface to shell functionality for shell commands and applications.\r
 \r
-  Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -1356,9 +1356,9 @@ ShellFileHandleReadLine(
 \r
 /**\r
   Function to delete a file by name\r
-  \r
+\r
   @param[in]       FileName       Pointer to file name to delete.\r
-  \r
+\r
   @retval EFI_SUCCESS             the file was deleted sucessfully\r
   @retval EFI_WARN_DELETE_FAILURE the handle was closed, but the file was not\r
                                   deleted\r
@@ -1388,7 +1388,7 @@ ShellDeleteFileByName(
 \r
   @param[in] CommandToGetHelpOn  Pointer to a string containing the command name of help file to be printed.\r
   @param[in] SectionToGetHelpOn  Pointer to the section specifier(s).\r
-  @param[in] PrintCommandText    If TRUE, prints the command followed by the help content, otherwise prints \r
+  @param[in] PrintCommandText    If TRUE, prints the command followed by the help content, otherwise prints\r
                                  the help content only.\r
   @retval EFI_DEVICE_ERROR       The help data format was incorrect.\r
   @retval EFI_NOT_FOUND          The help data could not be found.\r
index 68bb00c620056f691d1d64472f9a07d4f7161032..601520cb1ee58400a29f88a570bd3a981f634d3b 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Provides interface to advanced shell functionality for parsing both handle and protocol database.\r
 \r
-  Copyright (c) 2011 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
   (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
   (C) Copyright 2013-2016 Hewlett-Packard Development Company, L.P.<BR>\r
   This program and the accompanying materials\r
 /// EFI_FIRMWARE_IMAGE_DESCRIPTOR in UEFI spec < 2.4a\r
 ///\r
 typedef struct {\r
-  /// \r
-  /// A unique number identifying the firmware image within the device.  The number is \r
+  ///\r
+  /// A unique number identifying the firmware image within the device.  The number is\r
   /// between 1 and DescriptorCount.\r
-  /// \r
+  ///\r
   UINT8                            ImageIndex;\r
   ///\r
-  /// A unique number identifying the firmware image type.  \r
-  /// \r
+  /// A unique number identifying the firmware image type.\r
+  ///\r
   EFI_GUID                         ImageTypeId;\r
-  /// \r
-  /// A unique number identifying the firmware image. \r
-  /// \r
+  ///\r
+  /// A unique number identifying the firmware image.\r
+  ///\r
   UINT64                           ImageId;\r
-  /// \r
-  /// A pointer to a null-terminated string representing the firmware image name.  \r
-  /// \r
+  ///\r
+  /// A pointer to a null-terminated string representing the firmware image name.\r
+  ///\r
   CHAR16                           *ImageIdName;\r
-  /// \r
-  /// Identifies the version of the device firmware. The format is vendor specific and new \r
+  ///\r
+  /// Identifies the version of the device firmware. The format is vendor specific and new\r
   /// version must have a greater value than an old version.\r
-  /// \r
+  ///\r
   UINT32                           Version;\r
-  /// \r
+  ///\r
   /// A pointer to a null-terminated string representing the firmware image version name.\r
-  /// \r
+  ///\r
   CHAR16                           *VersionName;\r
-  /// \r
+  ///\r
   /// Size of the image in bytes.  If size=0, then only ImageIndex and ImageTypeId are valid.\r
-  /// \r
+  ///\r
   UINTN                            Size;\r
-  /// \r
-  /// Image attributes that are supported by this device.  See 'Image Attribute Definitions' \r
-  /// for possible returned values of this parameter.  A value of 1 indicates the attribute is \r
-  /// supported and the current setting value is indicated in AttributesSetting.  A \r
-  /// value of 0 indicates the attribute is not supported and the current setting value in \r
+  ///\r
+  /// Image attributes that are supported by this device.  See 'Image Attribute Definitions'\r
+  /// for possible returned values of this parameter.  A value of 1 indicates the attribute is\r
+  /// supported and the current setting value is indicated in AttributesSetting.  A\r
+  /// value of 0 indicates the attribute is not supported and the current setting value in\r
   /// AttributesSetting is meaningless.\r
-  /// \r
+  ///\r
   UINT64                           AttributesSupported;\r
-  /// \r
-  /// Image attributes.  See 'Image Attribute Definitions' for possible returned values of \r
+  ///\r
+  /// Image attributes.  See 'Image Attribute Definitions' for possible returned values of\r
   /// this parameter.\r
-  /// \r
+  ///\r
   UINT64                           AttributesSetting;\r
-  /// \r
-  /// Image compatibilities.  See 'Image Compatibility Definitions' for possible returned \r
+  ///\r
+  /// Image compatibilities.  See 'Image Compatibility Definitions' for possible returned\r
   /// values of this parameter.\r
-  /// \r
+  ///\r
   UINT64                           Compatibilities;\r
 } EFI_FIRMWARE_IMAGE_DESCRIPTOR_V1;\r
 \r
@@ -218,53 +218,53 @@ typedef struct {
 /// EFI_FIRMWARE_IMAGE_DESCRIPTOR in UEFI spec > 2.4a and < 2.5\r
 ///\r
 typedef struct {\r
-  /// \r
-  /// A unique number identifying the firmware image within the device.  The number is \r
+  ///\r
+  /// A unique number identifying the firmware image within the device.  The number is\r
   /// between 1 and DescriptorCount.\r
-  /// \r
+  ///\r
   UINT8                            ImageIndex;\r
   ///\r
-  /// A unique number identifying the firmware image type.  \r
-  /// \r
+  /// A unique number identifying the firmware image type.\r
+  ///\r
   EFI_GUID                         ImageTypeId;\r
-  /// \r
-  /// A unique number identifying the firmware image. \r
-  /// \r
+  ///\r
+  /// A unique number identifying the firmware image.\r
+  ///\r
   UINT64                           ImageId;\r
-  /// \r
-  /// A pointer to a null-terminated string representing the firmware image name.  \r
-  /// \r
+  ///\r
+  /// A pointer to a null-terminated string representing the firmware image name.\r
+  ///\r
   CHAR16                           *ImageIdName;\r
-  /// \r
-  /// Identifies the version of the device firmware. The format is vendor specific and new \r
+  ///\r
+  /// Identifies the version of the device firmware. The format is vendor specific and new\r
   /// version must have a greater value than an old version.\r
-  /// \r
+  ///\r
   UINT32                           Version;\r
-  /// \r
+  ///\r
   /// A pointer to a null-terminated string representing the firmware image version name.\r
-  /// \r
+  ///\r
   CHAR16                           *VersionName;\r
-  /// \r
+  ///\r
   /// Size of the image in bytes.  If size=0, then only ImageIndex and ImageTypeId are valid.\r
-  /// \r
+  ///\r
   UINTN                            Size;\r
-  /// \r
-  /// Image attributes that are supported by this device.  See 'Image Attribute Definitions' \r
-  /// for possible returned values of this parameter.  A value of 1 indicates the attribute is \r
-  /// supported and the current setting value is indicated in AttributesSetting.  A \r
-  /// value of 0 indicates the attribute is not supported and the current setting value in \r
+  ///\r
+  /// Image attributes that are supported by this device.  See 'Image Attribute Definitions'\r
+  /// for possible returned values of this parameter.  A value of 1 indicates the attribute is\r
+  /// supported and the current setting value is indicated in AttributesSetting.  A\r
+  /// value of 0 indicates the attribute is not supported and the current setting value in\r
   /// AttributesSetting is meaningless.\r
-  /// \r
+  ///\r
   UINT64                           AttributesSupported;\r
-  /// \r
-  /// Image attributes.  See 'Image Attribute Definitions' for possible returned values of \r
+  ///\r
+  /// Image attributes.  See 'Image Attribute Definitions' for possible returned values of\r
   /// this parameter.\r
-  /// \r
+  ///\r
   UINT64                           AttributesSetting;\r
-  /// \r
-  /// Image compatibilities.  See 'Image Compatibility Definitions' for possible returned \r
+  ///\r
+  /// Image compatibilities.  See 'Image Compatibility Definitions' for possible returned\r
   /// values of this parameter.\r
-  /// \r
+  ///\r
   UINT64                           Compatibilities;\r
   ///\r
   /// Describes the lowest ImageDescriptor version that the device will accept. Only\r
index 05b9a7b769d3b372d86f8c371783bc6b6a407343..95252ee91588233543774ef93541cde3f70a25b8 100644 (file)
@@ -1,6 +1,6 @@
 ##  @file\r
 #  Provides interface to advanced shell functionality for parsing both handle and protocol database.\r
-#  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved. <BR>\r
+#  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved. <BR>\r
 #  (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
 #  (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
 #\r
 \r
 [Pcd.common]\r
   gEfiShellPkgTokenSpaceGuid.PcdShellPrintBufferSize      ## CONSUMES\r
-  gEfiShellPkgTokenSpaceGuid.PcdShellIncludeNtGuids       ## CONSUMES
\ No newline at end of file
+  gEfiShellPkgTokenSpaceGuid.PcdShellIncludeNtGuids       ## CONSUMES\r
index ee3db6335871456d29bd36e38446016fea4297b6..079802f652f5a97abca7572ba6aab69c0558da64 100644 (file)
@@ -2,7 +2,7 @@
   Main file for BCFG command.\r
 \r
   (C) Copyright 2014-2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -94,8 +94,8 @@ typedef struct {
 **/\r
 EFI_STATUS\r
 UpdateOptionalData(\r
-  UINT16                          Index, \r
-  UINTN                           DataSize, \r
+  UINT16                          Index,\r
+  UINTN                           DataSize,\r
   UINT8                           *Data,\r
   IN CONST BCFG_OPERATION_TARGET  Target\r
   )\r
@@ -109,7 +109,7 @@ UpdateOptionalData(
   UINTN       OriginalOptionDataSize;\r
 \r
   UnicodeSPrint(VariableName, sizeof(VariableName), L"%s%04x", Target == BcfgTargetBootOrder?L"Boot":L"Driver", Index);\r
-  \r
+\r
   OriginalSize = 0;\r
   OriginalData = NULL;\r
   NewData      = NULL;\r
@@ -157,7 +157,7 @@ UpdateOptionalData(
     // put the data back under the variable\r
     //\r
     Status = gRT->SetVariable(\r
-      VariableName, \r
+      VariableName,\r
       (EFI_GUID*)&gEfiGlobalVariableGuid,\r
       EFI_VARIABLE_NON_VOLATILE|EFI_VARIABLE_BOOTSERVICE_ACCESS|EFI_VARIABLE_RUNTIME_ACCESS,\r
       NewSize,\r
@@ -180,7 +180,7 @@ UpdateOptionalData(
 **/\r
 EFI_STATUS\r
 GetBootOptionCrc(\r
-  UINT32      *Crc, \r
+  UINT32      *Crc,\r
   UINT16      BootIndex\r
   )\r
 {\r
@@ -629,7 +629,7 @@ BcfgAdd(
                      (VOID**)&FilePath);\r
         }\r
         if (EFI_ERROR (Status)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_HANDLE), gShellBcfgHiiHandle, L"bcfg", HandleNumber);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_HANDLE), gShellBcfgHiiHandle, L"bcfg", HandleNumber);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         }\r
       } else {\r
@@ -660,7 +660,7 @@ BcfgAdd(
               || ParentControllerHandleCount > 0\r
               || ChildControllerHandleCount > 0\r
               || !EFI_ERROR(Status) ) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", L"Handle Number");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", L"Handle Number");\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else {\r
           //\r
@@ -680,18 +680,18 @@ BcfgAdd(
       //\r
       // If filename matched nothing fail\r
       //\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellBcfgHiiHandle, L"bcfg", File);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellBcfgHiiHandle, L"bcfg", File);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (FileList->Link.ForwardLink != FileList->Link.BackLink) {\r
       //\r
       // If filename expanded to multiple names, fail\r
       //\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_FILE), gShellBcfgHiiHandle, L"bcfg", File);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_FILE), gShellBcfgHiiHandle, L"bcfg", File);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       Arg = (EFI_SHELL_FILE_INFO*)GetFirstNode(&FileList->Link);\r
       if (EFI_ERROR(Arg->Status)) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_FILE_OPEN), gShellBcfgHiiHandle, L"bcfg", File);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_FILE_OPEN), gShellBcfgHiiHandle, L"bcfg", File);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else {\r
         //\r
@@ -703,7 +703,7 @@ BcfgAdd(
         //\r
         DevicePath = gEfiShellProtocol->GetDevicePathFromFilePath(Arg->FullName);\r
         if (DevicePath == NULL) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_FILE_DP), gShellBcfgHiiHandle, L"bcfg", Arg->FullName);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_FILE_DP), gShellBcfgHiiHandle, L"bcfg", Arg->FullName);\r
           ShellStatus = SHELL_UNSUPPORTED;\r
         } else {\r
           if (UsePath) {\r
@@ -752,7 +752,7 @@ BcfgAdd(
     }\r
 \r
     if (TargetLocation == 0xFFFF) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_TARGET_NF), gShellBcfgHiiHandle, L"bcfg");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_TARGET_NF), gShellBcfgHiiHandle, L"bcfg");\r
     } else {\r
       ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_TARGET), gShellBcfgHiiHandle, TargetLocation);\r
     }\r
@@ -794,7 +794,7 @@ BcfgAdd(
     }\r
 \r
     if (EFI_ERROR(Status)) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_SET_VAR_FAIL), gShellBcfgHiiHandle, L"bcfg", OptionStr);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_SET_VAR_FAIL), gShellBcfgHiiHandle, L"bcfg", OptionStr);\r
     } else {\r
       NewOrder = AllocateZeroPool ((OrderCount + 1) * sizeof (NewOrder[0]));\r
       if (NewOrder != NULL) {\r
@@ -882,7 +882,7 @@ BcfgRemove(
     0,\r
     NULL);\r
   if (EFI_ERROR(Status)) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_WRITE_FAIL), gShellBcfgHiiHandle, L"bcfg", VariableName);  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_WRITE_FAIL), gShellBcfgHiiHandle, L"bcfg", VariableName);\r
     return (SHELL_INVALID_PARAMETER);\r
   }\r
   NewOrder = AllocateZeroPool(OrderCount*sizeof(CurrentOrder[0]));\r
@@ -903,7 +903,7 @@ BcfgRemove(
     Status = EFI_OUT_OF_RESOURCES;\r
   }\r
   if (EFI_ERROR(Status)) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_WRITE_FAIL), gShellBcfgHiiHandle, L"bcfg", Target == BcfgTargetBootOrder?(CHAR16*)L"BootOrder":(CHAR16*)L"DriverOrder");  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_WRITE_FAIL), gShellBcfgHiiHandle, L"bcfg", Target == BcfgTargetBootOrder?(CHAR16*)L"BootOrder":(CHAR16*)L"DriverOrder");\r
     return (SHELL_INVALID_PARAMETER);\r
   }\r
   return (SHELL_SUCCESS);\r
@@ -965,7 +965,7 @@ BcfgMove(
   FreePool(NewOrder);\r
 \r
   if (EFI_ERROR(Status)) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_WRITE_FAIL), gShellBcfgHiiHandle, L"bcfg", Target == BcfgTargetBootOrder?(CHAR16*)L"BootOrder":(CHAR16*)L"DriverOrder");  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_WRITE_FAIL), gShellBcfgHiiHandle, L"bcfg", Target == BcfgTargetBootOrder?(CHAR16*)L"BootOrder":(CHAR16*)L"DriverOrder");\r
     return (SHELL_INVALID_PARAMETER);\r
   }\r
   return (SHELL_SUCCESS);\r
@@ -1027,7 +1027,7 @@ BcfgAddOpt(
   //\r
   Status = ShellConvertStringToUint64(Walker, &Intermediate, FALSE, TRUE);\r
   if (EFI_ERROR(Status) || (((UINT16)Intermediate) != Intermediate) || StrStr(Walker, L" ") == NULL || ((UINT16)Intermediate) > ((UINT16)OrderCount)) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", L"Option Index");  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", L"Option Index");\r
     ShellStatus = SHELL_INVALID_PARAMETER;\r
     return (ShellStatus);\r
   }\r
@@ -1042,7 +1042,7 @@ BcfgAddOpt(
   }\r
 \r
   //\r
-  // determine whether we have file with data, quote delimited information, or a hot-key \r
+  // determine whether we have file with data, quote delimited information, or a hot-key\r
   //\r
   if (Walker[0] == L'\"') {\r
     //\r
@@ -1050,12 +1050,12 @@ BcfgAddOpt(
     //\r
     Temp = StrStr(Walker+1, L"\"");\r
     if (Temp == NULL || StrLen(Temp) != 1) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", Walker);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", Walker);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       FileName = StrnCatGrow(&FileName, NULL, Walker+1, 0);\r
       if (FileName == NULL) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_OUT_MEM), gShellBcfgHiiHandle, L"bcfg");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_OUT_MEM), gShellBcfgHiiHandle, L"bcfg");\r
         ShellStatus = SHELL_OUT_OF_RESOURCES;\r
         return (ShellStatus);\r
       }\r
@@ -1064,7 +1064,7 @@ BcfgAddOpt(
       Temp2[0] = CHAR_NULL;\r
       Temp2++;\r
       if (StrLen(Temp2)>0) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", Walker);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", Walker);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       }\r
       if (EFI_ERROR(ShellFileExists(Walker))) {\r
@@ -1086,14 +1086,14 @@ BcfgAddOpt(
       // filename\r
       //\r
       if (EFI_ERROR(ShellFileExists(Walker))) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FIND_FAIL), gShellBcfgHiiHandle, L"bcfg", Walker);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FIND_FAIL), gShellBcfgHiiHandle, L"bcfg", Walker);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else {\r
         FileName = StrnCatGrow(&FileName, NULL, Walker, 0);\r
       }\r
     } else {\r
       if (Target != BcfgTargetBootOrder) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_BOOT_ONLY), gShellBcfgHiiHandle, L"bcfg");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_BOOT_ONLY), gShellBcfgHiiHandle, L"bcfg");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       }\r
 \r
@@ -1103,7 +1103,7 @@ BcfgAddOpt(
         //\r
         Status = ShellConvertStringToUint64(Walker, &Intermediate, FALSE, TRUE);\r
         if (EFI_ERROR(Status) || (((UINT32)Intermediate) != Intermediate) || StrStr(Walker, L" ") == NULL) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", Walker);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", Walker);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         }\r
         NewKeyOption.KeyData.PackedValue = (UINT32)Intermediate;\r
@@ -1118,12 +1118,12 @@ BcfgAddOpt(
 \r
       if (ShellStatus == SHELL_SUCCESS) {\r
         //\r
-        // Now we know how many EFI_INPUT_KEY structs we need to attach to the end of the EFI_KEY_OPTION struct.  \r
+        // Now we know how many EFI_INPUT_KEY structs we need to attach to the end of the EFI_KEY_OPTION struct.\r
         // Re-allocate with the added information.\r
         //\r
         KeyOptionBuffer = AllocatePool (sizeof(EFI_KEY_OPTION) + (sizeof(EFI_INPUT_KEY) * NewKeyOption.KeyData.Options.InputKeyCount));\r
         if (KeyOptionBuffer == NULL) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_MEM), gShellBcfgHiiHandle, L"bcfg");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_MEM), gShellBcfgHiiHandle, L"bcfg");\r
           ShellStatus = SHELL_OUT_OF_RESOURCES;\r
           return ShellStatus;\r
         }\r
@@ -1135,7 +1135,7 @@ BcfgAddOpt(
         //\r
         Status = ShellConvertStringToUint64(Walker, &Intermediate, FALSE, TRUE);\r
         if (EFI_ERROR(Status) || (((UINT16)Intermediate) != Intermediate) || StrStr(Walker, L" ") == NULL) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", Walker);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", Walker);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         }\r
         ((EFI_INPUT_KEY*)(((UINT8*)KeyOptionBuffer) + sizeof(EFI_KEY_OPTION)))[LoopCounter].ScanCode = (UINT16)Intermediate;\r
@@ -1152,7 +1152,7 @@ BcfgAddOpt(
         //\r
         Status = ShellConvertStringToUint64(Walker, &Intermediate, FALSE, TRUE);\r
         if (EFI_ERROR(Status) || (((UINT16)Intermediate) != Intermediate)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", Walker);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", Walker);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         }\r
         ((EFI_INPUT_KEY*)(((UINT8*)KeyOptionBuffer) + sizeof(EFI_KEY_OPTION)))[LoopCounter].UnicodeChar = (UINT16)Intermediate;\r
@@ -1173,9 +1173,9 @@ BcfgAddOpt(
         KeyOptionBuffer->BootOption    = CurrentOrder[OptionIndex];\r
         Status = GetBootOptionCrc(&(KeyOptionBuffer->BootOptionCrc), KeyOptionBuffer->BootOption);\r
         if (EFI_ERROR(Status)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", L"Option Index");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", L"Option Index");\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
-        }        \r
+        }\r
       }\r
 \r
       if (ShellStatus == SHELL_SUCCESS) {\r
@@ -1197,11 +1197,11 @@ BcfgAddOpt(
             sizeof(EFI_KEY_OPTION) + (sizeof(EFI_INPUT_KEY) * NewKeyOption.KeyData.Options.InputKeyCount),\r
             KeyOptionBuffer);\r
           if (EFI_ERROR(Status)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_SET_VAR_FAIL), gShellBcfgHiiHandle, L"bcfg", VariableName);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_SET_VAR_FAIL), gShellBcfgHiiHandle, L"bcfg", VariableName);\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
-          }   \r
+          }\r
         } else {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_VAR_NO_NUM), gShellBcfgHiiHandle, L"bcfg");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_VAR_NO_NUM), gShellBcfgHiiHandle, L"bcfg");\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         }\r
         ASSERT(FileName == NULL && Data == NULL);\r
@@ -1229,7 +1229,7 @@ BcfgAddOpt(
       }\r
       Data = AllocateZeroPool((UINTN)Intermediate);\r
       if (Data == NULL) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_MEM), gShellBcfgHiiHandle, L"bcfg");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_MEM), gShellBcfgHiiHandle, L"bcfg");\r
         ShellStatus = SHELL_OUT_OF_RESOURCES;\r
       }\r
       if (!EFI_ERROR(Status)) {\r
@@ -1242,14 +1242,14 @@ BcfgAddOpt(
     if (!EFI_ERROR(Status) && ShellStatus == SHELL_SUCCESS && Data != NULL) {\r
       Status = UpdateOptionalData(CurrentOrder[OptionIndex], (UINTN)Intermediate, (UINT8*)Data, Target);\r
       if (EFI_ERROR(Status)) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_SET_VAR_FAIL), gShellBcfgHiiHandle, L"bcfg", VariableName);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_SET_VAR_FAIL), gShellBcfgHiiHandle, L"bcfg", VariableName);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
-      }   \r
+      }\r
     }\r
     if (EFI_ERROR(Status) && ShellStatus == SHELL_SUCCESS) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_SET_VAR_FAIL), gShellBcfgHiiHandle, L"bcfg", VariableName);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_SET_VAR_FAIL), gShellBcfgHiiHandle, L"bcfg", VariableName);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
-    }   \r
+    }\r
   }\r
 \r
   SHELL_FREE_NON_NULL(Data);\r
@@ -1291,7 +1291,7 @@ BcfgDisplayDump(
   UINTN           OptionalDataOffset;\r
 \r
   if (OrderCount == 0) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN(STR_BCFG_NONE), gShellBcfgHiiHandle, L"bcfg");  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN(STR_BCFG_NONE), gShellBcfgHiiHandle, L"bcfg");\r
     return (SHELL_SUCCESS);\r
   }\r
 \r
@@ -1321,7 +1321,7 @@ BcfgDisplayDump(
     }\r
 \r
     if (EFI_ERROR(Status) || Buffer == NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_READ_FAIL), gShellBcfgHiiHandle, L"bcfg", VariableName);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_READ_FAIL), gShellBcfgHiiHandle, L"bcfg", VariableName);\r
       ++Errors;\r
       goto Cleanup;\r
     }\r
@@ -1463,7 +1463,7 @@ ShellCommandRunBcfg (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellBcfgHiiHandle, L"bcfg", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellBcfgHiiHandle, L"bcfg", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -1476,7 +1476,7 @@ ShellCommandRunBcfg (
     if (ShellCommandLineGetFlag(Package, L"-opt")) {\r
       CurrentOperation.OptData = ShellCommandLineGetValue(Package, L"-opt");\r
       if (CurrentOperation.OptData == NULL) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellBcfgHiiHandle, L"bcfg", L"-opt");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellBcfgHiiHandle, L"bcfg", L"-opt");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       }\r
       CurrentOperation.Type = BcfgTypeOpt;\r
@@ -1488,14 +1488,14 @@ ShellCommandRunBcfg (
     if ((ShellCommandLineGetCount(Package) < 3 && CurrentOperation.Type != BcfgTypeOpt) ||\r
         (ShellCommandLineGetCount(Package) < 2 && CurrentOperation.Type == BcfgTypeOpt)\r
        ){\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellBcfgHiiHandle, L"bcfg");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellBcfgHiiHandle, L"bcfg");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (gUnicodeCollation->StriColl(gUnicodeCollation, (CHAR16*)ShellCommandLineGetRawValue(Package, 1), L"driver") == 0) {\r
       CurrentOperation.Target = BcfgTargetDriverOrder;\r
     } else if (gUnicodeCollation->StriColl(gUnicodeCollation, (CHAR16*)ShellCommandLineGetRawValue(Package, 1), L"boot") == 0) {\r
       CurrentOperation.Target = BcfgTargetBootOrder;\r
     } else {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_DRIVER_BOOT), gShellBcfgHiiHandle, L"bcfg");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_DRIVER_BOOT), gShellBcfgHiiHandle, L"bcfg");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     }\r
 \r
@@ -1541,17 +1541,17 @@ ShellCommandRunBcfg (
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           }\r
         } else if (ShellCommandLineGetFlag(Package, L"-v")) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", L"-v (without dump)");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", L"-v (without dump)");\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else if (gUnicodeCollation->StriColl(gUnicodeCollation, (CHAR16*)CurrentParam, L"add") == 0)     {\r
           if ((ParamNumber + 3) >= ShellCommandLineGetCount(Package)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellBcfgHiiHandle, L"bcfg");  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellBcfgHiiHandle, L"bcfg");\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           }\r
           CurrentOperation.Type = BcfgTypeAdd;\r
           CurrentParam = ShellCommandLineGetRawValue(Package, ++ParamNumber);\r
           if (CurrentParam == NULL || !ShellIsHexOrDecimalNumber(CurrentParam, TRUE, FALSE)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", CurrentParam);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", CurrentParam);\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           } else {\r
             Status = ShellConvertStringToUint64(CurrentParam, &Intermediate, TRUE, FALSE);\r
@@ -1563,13 +1563,13 @@ ShellCommandRunBcfg (
           }\r
         } else if (gUnicodeCollation->StriColl(gUnicodeCollation, (CHAR16*)CurrentParam, L"addp") == 0)    {\r
           if ((ParamNumber + 3) >= ShellCommandLineGetCount(Package)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellBcfgHiiHandle, L"bcfg");  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellBcfgHiiHandle, L"bcfg");\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           }\r
           CurrentOperation.Type = BcfgTypeAddp;\r
           CurrentParam = ShellCommandLineGetRawValue(Package, ++ParamNumber);\r
           if (CurrentParam == NULL || !ShellIsHexOrDecimalNumber(CurrentParam, TRUE, FALSE)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", CurrentParam);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", CurrentParam);\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           } else {\r
             Status = ShellConvertStringToUint64(CurrentParam, &Intermediate, TRUE, FALSE);\r
@@ -1581,20 +1581,20 @@ ShellCommandRunBcfg (
           }\r
         } else if (gUnicodeCollation->StriColl(gUnicodeCollation, (CHAR16*)CurrentParam, L"addh") == 0)    {\r
           if ((ParamNumber + 3) >= ShellCommandLineGetCount(Package)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellBcfgHiiHandle, L"bcfg");  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellBcfgHiiHandle, L"bcfg");\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           }\r
           CurrentOperation.Type = BcfgTypeAddh;\r
           CurrentParam = ShellCommandLineGetRawValue(Package, ++ParamNumber);\r
           if (CurrentParam == NULL || !ShellIsHexOrDecimalNumber(CurrentParam, TRUE, FALSE)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", CurrentParam);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", CurrentParam);\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           } else {\r
             Status = ShellConvertStringToUint64(CurrentParam, &Intermediate, TRUE, FALSE);\r
             CurrentOperation.Number1     = (UINT16)Intermediate;\r
             CurrentParam = ShellCommandLineGetRawValue(Package, ++ParamNumber);\r
             if (CurrentParam == NULL || !ShellIsHexOrDecimalNumber(CurrentParam, TRUE, FALSE)) {\r
-              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", CurrentParam);  \r
+              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", CurrentParam);\r
               ShellStatus = SHELL_INVALID_PARAMETER;\r
             } else {\r
               Status = ShellConvertStringToUint64(CurrentParam, &Intermediate, TRUE, FALSE);\r
@@ -1605,42 +1605,42 @@ ShellCommandRunBcfg (
           }\r
         } else if (gUnicodeCollation->StriColl(gUnicodeCollation, (CHAR16*)CurrentParam, L"rm") == 0)      {\r
           if ((ParamNumber + 1) >= ShellCommandLineGetCount(Package)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellBcfgHiiHandle, L"bcfg");  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellBcfgHiiHandle, L"bcfg");\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           }\r
           CurrentOperation.Type = BcfgTypeRm;\r
           CurrentParam = ShellCommandLineGetRawValue(Package, ++ParamNumber);\r
           if (CurrentParam == NULL || !ShellIsHexOrDecimalNumber(CurrentParam, TRUE, FALSE)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", CurrentParam);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", CurrentParam);\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           } else {\r
             Status = ShellConvertStringToUint64(CurrentParam, &Intermediate, TRUE, FALSE);\r
             CurrentOperation.Number1     = (UINT16)Intermediate;\r
             if (CurrentOperation.Number1 >= Count){\r
-              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_NUMB_RANGE), gShellBcfgHiiHandle, L"bcfg", Count);  \r
+              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_NUMB_RANGE), gShellBcfgHiiHandle, L"bcfg", Count);\r
               ShellStatus = SHELL_INVALID_PARAMETER;\r
             }\r
           }\r
         } else if (gUnicodeCollation->StriColl(gUnicodeCollation, (CHAR16*)CurrentParam, L"mv") == 0)      {\r
           if ((ParamNumber + 2) >= ShellCommandLineGetCount(Package)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellBcfgHiiHandle, L"bcfg");  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellBcfgHiiHandle, L"bcfg");\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           }\r
           CurrentOperation.Type = BcfgTypeMv;\r
           CurrentParam = ShellCommandLineGetRawValue(Package, ++ParamNumber);\r
           if (CurrentParam == NULL || !ShellIsHexOrDecimalNumber(CurrentParam, TRUE, FALSE)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", CurrentParam);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", CurrentParam);\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           } else {\r
             Status = ShellConvertStringToUint64(CurrentParam, &Intermediate, TRUE, FALSE);\r
             CurrentOperation.Number1     = (UINT16)Intermediate;\r
             if (CurrentOperation.Number1 >= Count){\r
-              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_NUMB_RANGE), gShellBcfgHiiHandle, L"bcfg", Count);  \r
+              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_NUMB_RANGE), gShellBcfgHiiHandle, L"bcfg", Count);\r
               ShellStatus = SHELL_INVALID_PARAMETER;\r
             } else {\r
               CurrentParam = ShellCommandLineGetRawValue(Package, ++ParamNumber);\r
               if (CurrentParam == NULL || !ShellIsHexOrDecimalNumber(CurrentParam, TRUE, FALSE)) {\r
-                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", CurrentParam);  \r
+                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", CurrentParam);\r
                 ShellStatus = SHELL_INVALID_PARAMETER;\r
               } else {\r
                 Status = ShellConvertStringToUint64(CurrentParam, &Intermediate, TRUE, FALSE);\r
@@ -1649,7 +1649,7 @@ ShellCommandRunBcfg (
               if (CurrentOperation.Number2 == CurrentOperation.Number1\r
                 ||CurrentOperation.Number2 >= Count\r
                ){\r
-                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_NUMB_RANGE), gShellBcfgHiiHandle, L"bcfg", Count);  \r
+                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_NUMB_RANGE), gShellBcfgHiiHandle, L"bcfg", Count);\r
                 ShellStatus = SHELL_INVALID_PARAMETER;\r
               }\r
             }\r
@@ -1751,7 +1751,7 @@ ShellCommandRunBcfg (
             }\r
           }\r
         } else {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", CurrentParam);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", CurrentParam);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         }\r
       }\r
index 500b1663cac57696ca558f64e67751266567be37..03f50d0511d68ff3210cd1517d23e14ee3b53a85 100644 (file)
@@ -1,7 +1,7 @@
 ##  @file\r
 #  Provides interface to shell functionality for shell commands and applications.\r
 #\r
-#  Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved. <BR>\r
+#  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved. <BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -40,5 +40,5 @@
 [Protocols]\r
   gEfiShellParametersProtocolGuid                         ## CONSUMES\r
   gEfiShellInterfaceGuid                                  ## SOMETIMES_CONSUMES\r
-  \r
+\r
 \r
index 3b13e62340de7c1355688967cd1899ba1fdb0c6f..96a944104e813fd4348e28af8b5687a9e06241b9 100755 (executable)
@@ -1,7 +1,7 @@
 /** @file\r
   Main file for support of shell consist mapping.\r
 \r
-  Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -56,10 +56,10 @@ typedef struct {
   @retval EFI_OUT_OF_RESOURCES    Out of resources.\r
   @retval EFI_SUCCESS             The appending was successful.\r
 **/\r
-typedef \r
-EFI_STATUS \r
+typedef\r
+EFI_STATUS\r
 (*SERIAL_DECODE_FUNCTION) (\r
-  EFI_DEVICE_PATH_PROTOCOL    *DevPath, \r
+  EFI_DEVICE_PATH_PROTOCOL    *DevPath,\r
   DEVICE_CONSIST_MAPPING_INFO *MapInfo,\r
   EFI_DEVICE_PATH_PROTOCOL    *OrigDevPath\r
   );\r
@@ -640,7 +640,7 @@ DevPathSerialUsb (
     UsbIo = NULL;\r
     if (!EFI_ERROR(Status)) {\r
       Status = gBS->OpenProtocol(TempHandle, &gEfiUsbIoProtocolGuid, (VOID**)&UsbIo, gImageHandle, NULL, EFI_OPEN_PROTOCOL_GET_PROTOCOL);\r
-    } \r
+    }\r
 \r
     if (!EFI_ERROR(Status)) {\r
       ASSERT(UsbIo != NULL);\r
@@ -661,7 +661,7 @@ DevPathSerialUsb (
           }\r
         }\r
       }\r
-    } \r
+    }\r
   }\r
   return Status;\r
 }\r
@@ -1520,13 +1520,13 @@ ShellCommandConsistMappingInitialize (
       continue;\r
     }\r
 \r
-    Status = gBS->HandleProtocol( HandleBuffer[HandleLoop], \r
-                                  &gEfiBlockIoProtocolGuid, \r
+    Status = gBS->HandleProtocol( HandleBuffer[HandleLoop],\r
+                                  &gEfiBlockIoProtocolGuid,\r
                                   (VOID **)&BlockIo\r
                                   );\r
     if (EFI_ERROR(Status)) {\r
-      Status = gBS->HandleProtocol( HandleBuffer[HandleLoop], \r
-                                    &gEfiSimpleFileSystemProtocolGuid, \r
+      Status = gBS->HandleProtocol( HandleBuffer[HandleLoop],\r
+                                    &gEfiSimpleFileSystemProtocolGuid,\r
                                     (VOID **)&SimpleFileSystem\r
                                     );\r
       if (EFI_ERROR(Status)) {\r
index 0df252b42036901458cd7168c27c4f88e00531c6..ddc4bb1567c6e52eab7abd50fc8c0e85a5097bf5 100644 (file)
@@ -79,7 +79,7 @@ CommandInit(
   UINTN                           Index;\r
   EFI_STATUS                      Status;\r
   CHAR8                           *PlatformLang;\r
-  \r
+\r
   GetEfiGlobalVariable2 (EFI_PLATFORM_LANG_VARIABLE_NAME, (VOID**)&PlatformLang, NULL);\r
   if (PlatformLang == NULL) {\r
     return EFI_UNSUPPORTED;\r
@@ -115,7 +115,7 @@ CommandInit(
 \r
       //\r
       // Find the best matching matching language from the supported languages\r
-      // of Unicode Collation2 protocol. \r
+      // of Unicode Collation2 protocol.\r
       //\r
       BestLanguage = GetBestLanguage (\r
                        Uc->SupportedLanguages,\r
@@ -311,7 +311,7 @@ ShellCommandFindDynamicCommand (
     //\r
     // not found or out of resources\r
     //\r
-    return NULL; \r
+    return NULL;\r
   }\r
 \r
   for (NextCommand = CommandHandleList; *NextCommand != NULL; NextCommand++) {\r
@@ -328,7 +328,7 @@ ShellCommandFindDynamicCommand (
     if (gUnicodeCollation->StriColl(\r
           gUnicodeCollation,\r
           (CHAR16*)CommandString,\r
-          (CHAR16*)DynamicCommand->CommandName) == 0 \r
+          (CHAR16*)DynamicCommand->CommandName) == 0\r
           ){\r
         FreePool(CommandHandleList);\r
         return (DynamicCommand);\r
@@ -429,7 +429,7 @@ ShellCommandGetDynamicCommandHelp(
   //\r
   // TODO: how to get proper language?\r
   //\r
-  return DynamicCommand->GetHelp(DynamicCommand, "en"); \r
+  return DynamicCommand->GetHelp(DynamicCommand, "en");\r
 }\r
 \r
 /**\r
@@ -847,7 +847,7 @@ ShellCommandRegisterAlias (
 {\r
   ALIAS_LIST *Node;\r
   ALIAS_LIST *CommandAlias;\r
-  ALIAS_LIST *PrevCommandAlias; \r
+  ALIAS_LIST *PrevCommandAlias;\r
   INTN       LexicalMatchValue;\r
 \r
   //\r
@@ -896,7 +896,7 @@ ShellCommandRegisterAlias (
     //\r
     // Swap PrevCommandAlias and CommandAlias list entry if PrevCommandAlias list entry\r
     // is alphabetically greater than CommandAlias list entry\r
-    // \r
+    //\r
     if (LexicalMatchValue > 0) {\r
       CommandAlias = (ALIAS_LIST *) SwapListEntries (&PrevCommandAlias->Link, &CommandAlias->Link);\r
     } else if (LexicalMatchValue < 0) {\r
index 7c232d01c7487be30dab4bbfd53a16f7b0c6cbb3..485b97a07f3af78f33865a5aabcb66ecf3088a44 100644 (file)
@@ -154,7 +154,7 @@ ShellCommandRunComp (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"comp", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"comp", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -162,22 +162,22 @@ ShellCommandRunComp (
     }\r
   } else {\r
     if (ShellCommandLineGetCount(Package) > 3) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"comp");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"comp");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (ShellCommandLineGetCount(Package) < 3) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"comp");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"comp");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       TempParam = ShellCommandLineGetRawValue(Package, 1);\r
       ASSERT(TempParam != NULL);\r
       FileName1 = ShellFindFilePath(TempParam);\r
       if (FileName1 == NULL) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_FIND_FAIL), gShellDebug1HiiHandle, L"comp", TempParam);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_FIND_FAIL), gShellDebug1HiiHandle, L"comp", TempParam);\r
         ShellStatus = SHELL_NOT_FOUND;\r
       } else {\r
         Status = ShellOpenFileByName(FileName1, &FileHandle1, EFI_FILE_MODE_READ, 0);\r
         if (EFI_ERROR(Status)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"comp", TempParam);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"comp", TempParam);\r
           ShellStatus = SHELL_NOT_FOUND;\r
         }\r
       }\r
@@ -185,12 +185,12 @@ ShellCommandRunComp (
       ASSERT(TempParam != NULL);\r
       FileName2 = ShellFindFilePath(TempParam);\r
       if (FileName2 == NULL) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_FIND_FAIL), gShellDebug1HiiHandle, L"comp", TempParam);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_FIND_FAIL), gShellDebug1HiiHandle, L"comp", TempParam);\r
         ShellStatus = SHELL_NOT_FOUND;\r
       } else {\r
         Status = ShellOpenFileByName(FileName2, &FileHandle2, EFI_FILE_MODE_READ, 0);\r
         if (EFI_ERROR(Status)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"comp", TempParam);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"comp", TempParam);\r
           ShellStatus = SHELL_NOT_FOUND;\r
         }\r
       }\r
index cde2c54f1b45edd5ebdfb2de952a544bd56f9c21..a8233a21f561075eed28cd73087a2dc86baedbbb 100644 (file)
@@ -7,7 +7,7 @@
   This sequence is further divided into Blocks and Huffman codings\r
   are applied to each Block.\r
 \r
-  Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -181,7 +181,7 @@ PutDword (
 \r
 /**\r
   Allocate memory spaces for data structures used in compression process.\r
-  \r
+\r
   @retval EFI_SUCCESS           Memory was allocated successfully.\r
   @retval EFI_OUT_OF_RESOURCES  A memory allocation failed.\r
 **/\r
@@ -740,7 +740,7 @@ MakeLen (
 \r
 /**\r
   Assign code to each symbol based on the code length array.\r
-  \r
+\r
   @param[in] LoopVar8      The number of symbols.\r
   @param[in] Len    The code length array.\r
   @param[out] Code  The stores codes for each symbol.\r
@@ -764,7 +764,7 @@ MakeCode (
     Code[LoopVar1] = Start[Len[LoopVar1]]++;\r
   }\r
 }\r
-  \r
+\r
 /**\r
   Generates Huffman codes given a frequency distribution of symbols.\r
 \r
@@ -1175,7 +1175,7 @@ HufEncodeStart (
 /**\r
   Outputs an Original Character or a Pointer.\r
 \r
-  @param[in] LoopVar5     The original character or the 'String Length' element of \r
+  @param[in] LoopVar5     The original character or the 'String Length' element of\r
                    a Pointer.\r
   @param[in] LoopVar7     The 'Position' field of a Pointer.\r
 **/\r
index 3632ca8a7a4eb1e16db1a252067b1741f5e551b2..24f988cca24d5a9dab87746d6307ac37eb6a48a5 100644 (file)
@@ -2,7 +2,7 @@
   Main file for Dblk shell Debug1 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -69,11 +69,11 @@ DisplayTheBlocks(
   Status = BlockIo->ReadBlocks(BlockIo, BlockIo->Media->MediaId, Lba, BufferSize, Buffer);\r
   if (!EFI_ERROR(Status) && Buffer != NULL) {\r
     ShellPrintHiiEx(\r
-      -1, \r
-      -1, \r
-      NULL, \r
-      STRING_TOKEN (STR_DBLK_HEADER), \r
-      gShellDebug1HiiHandle, \r
+      -1,\r
+      -1,\r
+      NULL,\r
+      STRING_TOKEN (STR_DBLK_HEADER),\r
+      gShellDebug1HiiHandle,\r
       Lba,\r
       BufferSize,\r
       BlockIo\r
@@ -81,7 +81,7 @@ DisplayTheBlocks(
 \r
     DumpHex(2,0,BufferSize,Buffer);\r
   } else {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_READ_FAIL), gShellDebug1HiiHandle, L"dblk", L"BlockIo");  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_READ_FAIL), gShellDebug1HiiHandle, L"dblk", L"BlockIo");\r
     ShellStatus = SHELL_DEVICE_ERROR;\r
   }\r
 \r
@@ -135,7 +135,7 @@ ShellCommandRunDblk (
   Status = ShellCommandLineParse (EmptyParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"dblk", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"dblk", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -143,10 +143,10 @@ ShellCommandRunDblk (
     }\r
   } else {\r
     if (ShellCommandLineGetCount(Package) > 4) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"dblk");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"dblk");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (ShellCommandLineGetCount(Package) < 2) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"dblk");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"dblk");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       //\r
@@ -160,7 +160,7 @@ ShellCommandRunDblk (
         Lba = 0;\r
       } else {\r
         if (!ShellIsHexOrDecimalNumber(LbaString, TRUE, FALSE)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"dblk", LbaString);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"dblk", LbaString);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         }\r
         ShellConvertStringToUint64(LbaString, &Lba, TRUE, FALSE);\r
@@ -170,29 +170,29 @@ ShellCommandRunDblk (
         BlockCount = 1;\r
       } else {\r
         if (!ShellIsHexOrDecimalNumber(BlockCountString, TRUE, FALSE)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"dblk", BlockCountString);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"dblk", BlockCountString);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         }\r
         ShellConvertStringToUint64(BlockCountString, &BlockCount, TRUE, FALSE);\r
         if (BlockCount > 0x10) {\r
           BlockCount = 0x10;\r
         } else if (BlockCount == 0) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"dblk", BlockCountString);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"dblk", BlockCountString);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         }\r
       }\r
-      \r
+\r
       if (ShellStatus == SHELL_SUCCESS) {\r
         //\r
         // do the work if we have a valid block identifier\r
         //\r
         if (gEfiShellProtocol->GetDevicePathFromMap(BlockName) == NULL) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"dblk", BlockName);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"dblk", BlockName);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else {\r
           DevPath = (EFI_DEVICE_PATH_PROTOCOL*)gEfiShellProtocol->GetDevicePathFromMap(BlockName);\r
           if (gBS->LocateDevicePath(&gEfiBlockIoProtocolGuid, &DevPath, NULL) == EFI_NOT_FOUND) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_MAP_PROTOCOL), gShellDebug1HiiHandle, L"dblk", BlockName, L"BlockIo");  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_MAP_PROTOCOL), gShellDebug1HiiHandle, L"dblk", BlockName, L"BlockIo");\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           } else {\r
             ShellStatus = DisplayTheBlocks(gEfiShellProtocol->GetDevicePathFromMap(BlockName), Lba, (UINT8)BlockCount);\r
index 42efb4c7d5b251491cc8b3434b184ae10bb4ac32..f38593a9e91a22babb4a48180c58b41b7f642e3d 100644 (file)
@@ -1,9 +1,9 @@
 /** @file\r
   Main file for Dmem shell Debug1 function.\r
 \r
-  Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>\r
-  (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>  \r
-  (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>  \r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
+  (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
   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
@@ -62,7 +62,7 @@ DisplayMmioMemory(
 \r
   Status = gBS->LocateProtocol(&gEfiPciRootBridgeIoProtocolGuid, NULL, (VOID**)&PciRbIo);\r
   if (EFI_ERROR(Status)) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PCIRBIO_NF), gShellDebug1HiiHandle, L"dmem");  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PCIRBIO_NF), gShellDebug1HiiHandle, L"dmem");\r
     return (SHELL_NOT_FOUND);\r
   }\r
   Buffer = AllocateZeroPool(Size);\r
@@ -72,7 +72,7 @@ DisplayMmioMemory(
 \r
   Status = PciRbIo->Mem.Read(PciRbIo, EfiPciWidthUint8, (UINT64)(UINTN)Address, Size, Buffer);\r
   if (EFI_ERROR(Status)) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PCIRBIO_ER), gShellDebug1HiiHandle, L"dmem");  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PCIRBIO_ER), gShellDebug1HiiHandle, L"dmem");\r
     ShellStatus = SHELL_NOT_FOUND;\r
   } else {\r
     ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_DMEM_MMIO_HEADER_ROW), gShellDebug1HiiHandle, (UINT64)(UINTN)Address, Size);\r
@@ -135,7 +135,7 @@ ShellCommandRunDmem (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"dmem", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"dmem", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -143,7 +143,7 @@ ShellCommandRunDmem (
     }\r
   } else {\r
     if (ShellCommandLineGetCount(Package) > 3) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"dmem");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"dmem");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       Temp1 = ShellCommandLineGetRawValue(Package, 1);\r
@@ -152,15 +152,15 @@ ShellCommandRunDmem (
         Size = 512;\r
       } else {\r
         if (!ShellIsHexOrDecimalNumber(Temp1, TRUE, FALSE) || EFI_ERROR(ShellConvertStringToUint64(Temp1, (UINT64*)&Address, TRUE, FALSE))) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"dmem", Temp1);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"dmem", Temp1);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
-        } \r
+        }\r
         Temp1 = ShellCommandLineGetRawValue(Package, 2);\r
         if (Temp1 == NULL) {\r
           Size = 512;\r
         } else {\r
           if (!ShellIsHexOrDecimalNumber(Temp1, FALSE, FALSE) || EFI_ERROR(ShellConvertStringToUint64(Temp1, &Size, TRUE, FALSE))) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"dmem", Temp1);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"dmem", Temp1);\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           }\r
         }\r
@@ -204,7 +204,7 @@ ShellCommandRunDmem (
             }\r
           }\r
 \r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_DMEM_SYSTEM_TABLE), gShellDebug1HiiHandle, \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_DMEM_SYSTEM_TABLE), gShellDebug1HiiHandle,\r
             (UINT64)(UINTN)Address,\r
             gST->Hdr.HeaderSize,\r
             gST->Hdr.Revision,\r
index 5791da9acc8c5f0192dfa733e6f5247bb1427c25..e656e18677dc007c03bb0d2055dd77f33ac7c22e 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   Main file for DmpStore shell Debug1 function.\r
-   \r
+\r
   (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -51,7 +51,7 @@ GetAttrType (
 \r
   BufLen      = 0;\r
   RetString   = NULL;\r
\r
+\r
   if ((Atts & EFI_VARIABLE_NON_VOLATILE) != 0) {\r
     StrnCatGrow (&RetString, &BufLen, L"+NV", 0);\r
   }\r
@@ -157,11 +157,11 @@ LoadVariablesFromFile (
   if (EFI_ERROR (Status)) {\r
     return SHELL_DEVICE_ERROR;\r
   }\r
-  \r
+\r
   ShellStatus = SHELL_SUCCESS;\r
-  \r
+\r
   InitializeListHead (&List);\r
-  \r
+\r
   Position = 0;\r
   while (Position < FileSize) {\r
     //\r
@@ -220,7 +220,7 @@ LoadVariablesFromFile (
     }\r
 \r
     Position += BufferSize + sizeof (Crc32);\r
-    \r
+\r
     Variable = AllocateZeroPool (sizeof (*Variable) + NameSize + DataSize);\r
     if (Variable == NULL) {\r
       FreePool (Buffer);\r
@@ -239,20 +239,20 @@ LoadVariablesFromFile (
     InsertTailList (&List, &Variable->Link);\r
     FreePool (Buffer);\r
   }\r
-    \r
+\r
   if ((Position != FileSize) || (ShellStatus != SHELL_SUCCESS)) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_DMPSTORE_LOAD_BAD_FILE), gShellDebug1HiiHandle, L"dmpstore");  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_DMPSTORE_LOAD_BAD_FILE), gShellDebug1HiiHandle, L"dmpstore");\r
     if (Position != FileSize) {\r
       ShellStatus = SHELL_VOLUME_CORRUPTED;\r
     }\r
   }\r
-  \r
+\r
   for ( Link = GetFirstNode (&List)\r
       ; !IsNull (&List, Link) && (ShellStatus == SHELL_SUCCESS)\r
       ; Link = GetNextNode (&List, Link)\r
       ) {\r
     Variable = CR (Link, DMP_STORE_VARIABLE, Link, DMP_STORE_VARIABLE_SIGNATURE);\r
-    \r
+\r
     if (((Name == NULL) || gUnicodeCollation->MetaiMatch (gUnicodeCollation, Variable->Name, (CHAR16 *) Name)) &&\r
         ((Guid == NULL) || CompareGuid (&Variable->Guid, Guid))\r
        ) {\r
@@ -272,7 +272,7 @@ LoadVariablesFromFile (
                       Variable->Data\r
                       );\r
       if (EFI_ERROR (Status)) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_DMPSTORE_LOAD_GEN_FAIL), gShellDebug1HiiHandle, L"dmpstore", Variable->Name, Status);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_DMPSTORE_LOAD_GEN_FAIL), gShellDebug1HiiHandle, L"dmpstore", Variable->Name, Status);\r
       }\r
     }\r
   }\r
@@ -369,19 +369,19 @@ AppendSingleVariableToFile (
   Status = ShellWriteFile (FileHandle, &BufferSize, Buffer);\r
   FreePool (Buffer);\r
 \r
-  if (!EFI_ERROR (Status) && \r
+  if (!EFI_ERROR (Status) &&\r
       (BufferSize != sizeof (NameSize) + sizeof (DataSize) + sizeof (*Guid) + sizeof (Attributes) + NameSize + DataSize + sizeof (UINT32))\r
     ) {\r
     Status = EFI_DEVICE_ERROR;\r
   }\r
-  \r
+\r
   return Status;\r
 }\r
 \r
 /**\r
   Recursive function to display or delete variables.\r
 \r
-  This function will call itself to create a stack-based list of allt he variables to process, \r
+  This function will call itself to create a stack-based list of allt he variables to process,\r
   then fromt he last to the first, they will do either printing or deleting.\r
 \r
   This is necessary since once a delete happens GetNextVariableName() will work.\r
@@ -480,9 +480,9 @@ CascadeProcessVariables (
   // No matter what happened we process our own variable\r
   // Only continue if Guid and VariableName are each either NULL or a match\r
   //\r
-  if ( ( Name == NULL \r
+  if ( ( Name == NULL\r
       || gUnicodeCollation->MetaiMatch(gUnicodeCollation, FoundVarName, (CHAR16*) Name) )\r
-     && ( Guid == NULL \r
+     && ( Guid == NULL\r
       || CompareGuid(&FoundVarGuid, Guid) )\r
       ) {\r
     DataSize      = 0;\r
@@ -634,16 +634,16 @@ ProcessVariables (
 \r
   if (!Found) {\r
     if (ShellStatus == SHELL_OUT_OF_RESOURCES) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_OUT_MEM), gShellDebug1HiiHandle, L"dmpstore");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_OUT_MEM), gShellDebug1HiiHandle, L"dmpstore");\r
       return (ShellStatus);\r
     } else if (Name != NULL && Guid == NULL) {\r
       if (StandardFormatOutput) {\r
         ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_DMPSTORE_NO_VAR_FOUND_N_SFO), gShellDebug1HiiHandle, Name);\r
       } else {\r
-        ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_DMPSTORE_NO_VAR_FOUND_N), gShellDebug1HiiHandle, L"dmpstore", Name);  \r
+        ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_DMPSTORE_NO_VAR_FOUND_N), gShellDebug1HiiHandle, L"dmpstore", Name);\r
       }\r
     } else if (Name != NULL && Guid != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_DMPSTORE_NO_VAR_FOUND_GN), gShellDebug1HiiHandle, L"dmpstore", Guid, Name);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_DMPSTORE_NO_VAR_FOUND_GN), gShellDebug1HiiHandle, L"dmpstore", Guid, Name);\r
     } else if (Name == NULL && Guid == NULL) {\r
       if (StandardFormatOutput) {\r
         ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_DMPSTORE_NO_VAR_FOUND_SFO), gShellDebug1HiiHandle);\r
@@ -656,7 +656,7 @@ ProcessVariables (
       } else {\r
         ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_DMPSTORE_NO_VAR_FOUND_G), gShellDebug1HiiHandle, L"dmpstore", Guid);\r
       }\r
-    } \r
+    }\r
     return (SHELL_NOT_FOUND);\r
   }\r
   return (ShellStatus);\r
@@ -710,7 +710,7 @@ ShellCommandRunDmpStore (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"dmpstore", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"dmpstore", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -718,19 +718,19 @@ ShellCommandRunDmpStore (
     }\r
   } else {\r
     if (ShellCommandLineGetCount(Package) > 2) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"dmpstore");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"dmpstore");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (ShellCommandLineGetFlag(Package, L"-all") && ShellCommandLineGetFlag(Package, L"-guid")) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CONFLICT), gShellDebug1HiiHandle, L"dmpstore", L"-all", L"-guid");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CONFLICT), gShellDebug1HiiHandle, L"dmpstore", L"-all", L"-guid");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (ShellCommandLineGetFlag(Package, L"-s") && ShellCommandLineGetFlag(Package, L"-l")) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CONFLICT), gShellDebug1HiiHandle,  L"dmpstore", L"-l", L"-s");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CONFLICT), gShellDebug1HiiHandle,  L"dmpstore", L"-l", L"-s");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if ((ShellCommandLineGetFlag(Package, L"-s") || ShellCommandLineGetFlag(Package, L"-l")) && ShellCommandLineGetFlag(Package, L"-d")) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CONFLICT), gShellDebug1HiiHandle, L"dmpstore", L"-l or -s", L"-d");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CONFLICT), gShellDebug1HiiHandle, L"dmpstore", L"-l or -s", L"-d");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if ((ShellCommandLineGetFlag(Package, L"-s") || ShellCommandLineGetFlag(Package, L"-l")) && ShellCommandLineGetFlag(Package, L"-sfo")) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CONFLICT), gShellDebug1HiiHandle, L"dmpstore", L"-l or -s", L"-sfo");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CONFLICT), gShellDebug1HiiHandle, L"dmpstore", L"-l or -s", L"-sfo");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       //\r
@@ -741,7 +741,7 @@ ShellCommandRunDmpStore (
         if (GuidStr != NULL) {\r
           RStatus = StrToGuid (GuidStr, &GuidData);\r
           if (RETURN_ERROR (RStatus) || (GuidStr[GUID_STRING_LENGTH] != L'\0')) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"dmpstore", GuidStr);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"dmpstore", GuidStr);\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           }\r
           Guid = &GuidData;\r
@@ -762,7 +762,7 @@ ShellCommandRunDmpStore (
           Type = DmpStoreSave;\r
           File = ShellCommandLineGetValue(Package, L"-s");\r
           if (File == NULL) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDebug1HiiHandle, L"dmpstore", L"-s");  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDebug1HiiHandle, L"dmpstore", L"-s");\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           } else {\r
             Status = ShellOpenFileByName (File, &FileHandle, EFI_FILE_MODE_WRITE | EFI_FILE_MODE_READ, 0);\r
@@ -772,16 +772,16 @@ ShellCommandRunDmpStore (
               //\r
               FileInfo = ShellGetFileInfo (FileHandle);\r
               if (FileInfo == NULL) {\r
-                ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"dmpstore", File);  \r
+                ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"dmpstore", File);\r
                 Status = EFI_DEVICE_ERROR;\r
               } else {\r
                 if ((FileInfo->Attribute & EFI_FILE_DIRECTORY) == EFI_FILE_DIRECTORY) {\r
-                  ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_IS_DIRECTORY), gShellDebug1HiiHandle, L"dmpstore", File);  \r
+                  ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_IS_DIRECTORY), gShellDebug1HiiHandle, L"dmpstore", File);\r
                   Status = EFI_INVALID_PARAMETER;\r
                 } else {\r
                   Status = ShellDeleteFile (&FileHandle);\r
                   if (EFI_ERROR (Status)) {\r
-                    ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_DELETE_FAIL), gShellDebug1HiiHandle, L"dmpstore", File);  \r
+                    ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_DELETE_FAIL), gShellDebug1HiiHandle, L"dmpstore", File);\r
                   }\r
                 }\r
                 FreePool (FileInfo);\r
@@ -795,13 +795,13 @@ ShellCommandRunDmpStore (
               //\r
               // Otherwise it's bad.\r
               //\r
-              ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"dmpstore", File);  \r
+              ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"dmpstore", File);\r
             }\r
 \r
             if (!EFI_ERROR (Status)) {\r
               Status = ShellOpenFileByName (File, &FileHandle, EFI_FILE_MODE_CREATE | EFI_FILE_MODE_WRITE | EFI_FILE_MODE_READ, 0);\r
               if (EFI_ERROR (Status)) {\r
-                ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"dmpstore", File);  \r
+                ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"dmpstore", File);\r
               }\r
             }\r
 \r
@@ -813,21 +813,21 @@ ShellCommandRunDmpStore (
           Type = DmpStoreLoad;\r
           File = ShellCommandLineGetValue(Package, L"-l");\r
           if (File == NULL) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDebug1HiiHandle, L"dmpstore", L"-l");  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDebug1HiiHandle, L"dmpstore", L"-l");\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           } else {\r
             Status = ShellOpenFileByName (File, &FileHandle, EFI_FILE_MODE_READ, 0);\r
             if (EFI_ERROR (Status)) {\r
-              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"dmpstore", File);  \r
+              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"dmpstore", File);\r
               ShellStatus = SHELL_INVALID_PARAMETER;\r
             } else {\r
               FileInfo = ShellGetFileInfo (FileHandle);\r
               if (FileInfo == NULL) {\r
-                ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"dmpstore", File);  \r
+                ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"dmpstore", File);\r
                 ShellStatus = SHELL_DEVICE_ERROR;\r
               } else {\r
                 if ((FileInfo->Attribute & EFI_FILE_DIRECTORY) == EFI_FILE_DIRECTORY) {\r
-                  ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_IS_DIRECTORY), gShellDebug1HiiHandle, L"dmpstore", File);  \r
+                  ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_IS_DIRECTORY), gShellDebug1HiiHandle, L"dmpstore", File);\r
                   ShellStatus = SHELL_INVALID_PARAMETER;\r
                 }\r
                 FreePool (FileInfo);\r
index 986b7e7b886fbe495461b4c8c505c9ac89d7303e..6b8d4c17ff7cdbe0bf5c20382c7d6790ea6cdad1 100644 (file)
@@ -2,7 +2,7 @@
   Main file for Edit shell Debug1 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -59,7 +59,7 @@ ShellCommandRunEdit (
   Status = ShellCommandLineParse (EmptyParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"edit", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"edit", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -67,7 +67,7 @@ ShellCommandRunEdit (
     }\r
   } else {\r
     if (ShellCommandLineGetCount(Package) > 2) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"edit");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"edit");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       Cwd = gEfiShellProtocol->GetCurDir(NULL);\r
@@ -86,7 +86,7 @@ ShellCommandRunEdit (
             }\r
             gEfiShellProtocol->SetCurDir(NULL, Nfs);\r
             FreePool(Nfs);\r
-          } \r
+          }\r
         }\r
       }\r
 \r
@@ -135,7 +135,7 @@ ShellCommandRunEdit (
         //\r
         if (Status == EFI_SUCCESS) {\r
         } else if (Status == EFI_OUT_OF_RESOURCES) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN(STR_GEN_OUT_MEM), gShellDebug1HiiHandle, L"edit");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN(STR_GEN_OUT_MEM), gShellDebug1HiiHandle, L"edit");\r
         } else {\r
           if (Buffer != NULL) {\r
             if (StrCmp (Buffer, L"") != 0) {\r
index 9713ccaf5083dd2f44cf553502cd28fe535db990..56ccd399b0a88dc03464f66be3a9cb09250e3586 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Implements filebuffer interface functions.\r
 \r
-  Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -53,7 +53,7 @@ EFI_EDITOR_FILE_BUFFER  FileBufferConst = {
 //\r
 // the whole edit area needs to be refreshed\r
 //\r
-BOOLEAN          FileBufferNeedRefresh;        \r
+BOOLEAN          FileBufferNeedRefresh;\r
 \r
 //\r
 // only the current line in edit area needs to be refresh\r
@@ -144,7 +144,7 @@ FileBufferBackup (
 \r
 /**\r
   Advance to the next Count lines\r
-  \r
+\r
   @param[in] Count              The line number to advance by.\r
   @param[in] CurrentLine        The pointer to the current line structure.\r
   @param[in] LineList           The pointer to the linked list of lines.\r
@@ -183,7 +183,7 @@ InternalEditorMiscLineAdvance (
 \r
 /**\r
   Retreat to the previous Count lines.\r
-  \r
+\r
   @param[in] Count              The line number to retreat by.\r
   @param[in] CurrentLine        The pointer to the current line structure.\r
   @param[in] LineList           The pointer to the linked list of lines.\r
@@ -222,7 +222,7 @@ InternalEditorMiscLineRetreat (
 \r
 /**\r
   Advance/Retreat lines\r
-  \r
+\r
   @param[in] Count  line number to advance/retreat\r
                        >0 : advance\r
                        <0 : retreat\r
@@ -484,7 +484,7 @@ FileBufferPrintLine (
   UINTN   Limit;\r
   CHAR16  *PrintLine;\r
   CHAR16  *PrintLine2;\r
-  UINTN   BufLen; \r
+  UINTN   BufLen;\r
 \r
   //\r
   // print start from correct character\r
@@ -710,7 +710,7 @@ FileBufferCreateLine (
   Set FileName field in FileBuffer.\r
 \r
   @param Str                    The file name to set.\r
-  \r
+\r
   @retval EFI_SUCCESS           The filename was successfully set.\r
   @retval EFI_OUT_OF_RESOURCES  A memory allocation failed.\r
   @retval EFI_INVALID_PARAMETER Str is not a valid filename.\r
@@ -763,10 +763,10 @@ FileBufferFree (
 \r
 /**\r
   Read a file from disk into the FileBuffer.\r
-  \r
+\r
   @param[in] FileName           The filename to read.\r
   @param[in] Recover            TRUE if is for recover mode, no information printouts.\r
-  \r
+\r
   @retval EFI_SUCCESS            The load was successful.\r
   @retval EFI_LOAD_ERROR         The load failed.\r
   @retval EFI_OUT_OF_RESOURCES   A memory allocation failed.\r
@@ -823,7 +823,7 @@ FileBufferRead (
     }\r
 \r
     Info = ShellGetFileInfo(FileHandle);\r
-    \r
+\r
     if (Info->Attribute & EFI_FILE_DIRECTORY) {\r
       StatusBarSetStatusString (L"Directory Can Not Be Edited");\r
       FreePool (Info);\r
@@ -1397,7 +1397,7 @@ UnicodeToAscii (
   @param[in] FileName           The file name for writing.\r
 \r
   @retval EFI_SUCCESS           Data was written.\r
-  @retval EFI_LOAD_ERROR        \r
+  @retval EFI_LOAD_ERROR\r
   @retval EFI_OUT_OF_RESOURCES  There were not enough resources to write the file.\r
 **/\r
 EFI_STATUS\r
@@ -1472,7 +1472,7 @@ FileBufferSave (
       FreePool(Info);\r
       return EFI_LOAD_ERROR;\r
     }\r
-    \r
+\r
     if (Info != NULL) {\r
       Attribute = Info->Attribute & ~EFI_FILE_READ_ONLY;\r
       FreePool(Info);\r
@@ -1550,7 +1550,7 @@ FileBufferSave (
       Size    = TotalSize - LeftSize;\r
       Status  = ShellWriteFile (FileHandle, &Size, Cache);\r
       if (EFI_ERROR (Status)) {\r
-        ShellDeleteFile (&FileHandle);        \r
+        ShellDeleteFile (&FileHandle);\r
         FreePool (Cache);\r
         return EFI_LOAD_ERROR;\r
       }\r
@@ -1911,7 +1911,7 @@ FileBufferDoReturn (
 }\r
 \r
 /**\r
-  Delete current character from current line.  This is the effect caused \r
+  Delete current character from current line.  This is the effect caused\r
   by the 'del' key.\r
 \r
   @retval EFI_SUCCESS\r
@@ -2023,7 +2023,7 @@ FileBufferScrollRight (
 /**\r
   Insert a char into line\r
 \r
-  \r
+\r
   @param[in] Line     The line to insert into.\r
   @param[in] Char     The char to insert.\r
   @param[in] Pos      The position to insert the char at ( start from 0 ).\r
@@ -2395,7 +2395,7 @@ FileBufferEnd (
   return EFI_SUCCESS;\r
 }\r
 \r
-/** \r
+/**\r
   Dispatch input to different handler\r
   @param[in] Key                The input key.  One of:\r
                                     ASCII KEY\r
@@ -2610,7 +2610,7 @@ RightCurrentScreen (
 \r
 /**\r
   Advance/Retreat lines and set CurrentLine in FileBuffer to it\r
-  \r
+\r
   @param[in] Count The line number to advance/retreat\r
                      >0 : advance\r
                      <0: retreat\r
@@ -2756,7 +2756,7 @@ FileBufferMovePosition (
 /**\r
   Cut current line out and return a pointer to it.\r
 \r
-  @param[out] CutLine    Upon a successful return pointer to the pointer to \r
+  @param[out] CutLine    Upon a successful return pointer to the pointer to\r
                         the allocated cut line.\r
 \r
   @retval EFI_SUCCESS             The cut was successful.\r
@@ -2930,7 +2930,7 @@ FileBufferSearch (
 \r
   Column = 0;\r
   Position = 0;\r
-  \r
+\r
   //\r
   // search if in current line\r
   //\r
@@ -2949,7 +2949,7 @@ FileBufferSearch (
   if (CharPos != NULL) {\r
     Position = CharPos - Current + 1;\r
     Found   = TRUE;\r
-  } \r
+  }\r
 \r
   //\r
   // found\r
@@ -2971,8 +2971,8 @@ FileBufferSearch (
       if (CharPos != NULL) {\r
         Position = CharPos - Line->Buffer + 1;\r
         Found   = TRUE;\r
-      } \r
-      \r
+      }\r
+\r
       if (Found) {\r
         //\r
         // found\r
index 6b46e4a173d7439e4a2aff06763ea2995d684792..8f5f4e65c79bc1082e1d024727d54c01be565137 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Declares filebuffer interface functions.\r
 \r
-  Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -50,7 +50,7 @@ FileBufferRefresh (
   VOID\r
   );\r
 \r
-/** \r
+/**\r
   Dispatch input to different handler\r
   @param[in] Key                The input key.  One of:\r
                                     ASCII KEY\r
@@ -98,7 +98,7 @@ FileBufferRestorePosition (
   Set FileName field in FileBuffer.\r
 \r
   @param Str                    The file name to set.\r
-  \r
+\r
   @retval EFI_SUCCESS           The filename was successfully set.\r
   @retval EFI_OUT_OF_RESOURCES  A memory allocation failed.\r
   @retval EFI_INVALID_PARAMETER Str is not a valid filename.\r
@@ -110,10 +110,10 @@ FileBufferSetFileName (
 \r
 /**\r
   Read a file from disk into the FileBuffer.\r
-  \r
+\r
   @param[in] FileName           The filename to read.\r
   @param[in] Recover            TRUE if is for recover mode, no information printouts.\r
-  \r
+\r
   @retval EFI_SUCCESS            The load was successful.\r
   @retval EFI_LOAD_ERROR         The load failed.\r
   @retval EFI_OUT_OF_RESOURCES   A memory allocation failed.\r
@@ -131,7 +131,7 @@ FileBufferRead (
   @param[in] FileName           The file name for writing.\r
 \r
   @retval EFI_SUCCESS           Data was written.\r
-  @retval EFI_LOAD_ERROR        \r
+  @retval EFI_LOAD_ERROR\r
   @retval EFI_OUT_OF_RESOURCES  There were not enough resources to write the file.\r
 **/\r
 EFI_STATUS\r
@@ -154,7 +154,7 @@ FileBufferMovePosition (
 /**\r
   Cut current line out and return a pointer to it.\r
 \r
-  @param[out] CutLine    Upon a successful return pointer to the pointer to \r
+  @param[out] CutLine    Upon a successful return pointer to the pointer to\r
                         the allocated cut line.\r
 \r
   @retval EFI_SUCCESS             The cut was successful.\r
index 98e1331ac453267334d1766b9c621d43952192b6..a3ba6c1d6fda877a0a2b3503f14970aac30f7810 100644 (file)
@@ -77,7 +77,7 @@ MainCommandGotoLine (
 /**\r
   Save current file to disk, you can save to current file name or\r
   save to another file name.\r
-  \r
+\r
   @retval EFI_SUCCESS           The file was saved correctly.\r
   @retval EFI_OUT_OF_RESOURCES  A memory allocation failed.\r
   @retval EFI_LOAD_ERROR          A file access error occured.\r
@@ -1136,7 +1136,7 @@ MainCommandGotoLine (
 /**\r
   Save current file to disk, you can save to current file name or\r
   save to another file name.\r
-  \r
+\r
   @retval EFI_SUCCESS           The file was saved correctly.\r
   @retval EFI_OUT_OF_RESOURCES  A memory allocation failed.\r
   @retval EFI_LOAD_ERROR          A file access error occured.\r
@@ -1150,7 +1150,7 @@ MainCommandSaveFile (
   CHAR16            *FileName;\r
   BOOLEAN           OldFile;\r
   CHAR16            *Str;\r
-  SHELL_FILE_HANDLE FileHandle;  \r
+  SHELL_FILE_HANDLE FileHandle;\r
   EFI_FILE_INFO     *Info;\r
 \r
   //\r
@@ -1280,15 +1280,15 @@ MainCommandSaveFile (
         StatusBarSetStatusString (L"Open Failed");\r
         FreePool (FileName);\r
         return EFI_SUCCESS;\r
-      } \r
+      }\r
 \r
       Info = ShellGetFileInfo(FileHandle);\r
       if (Info == NULL) {\r
         StatusBarSetStatusString (L"Access Denied");\r
         FreePool (FileName);\r
         return (EFI_SUCCESS);\r
-      } \r
-      \r
+      }\r
+\r
       if (Info->Attribute & EFI_FILE_READ_ONLY) {\r
         StatusBarSetStatusString (L"Access Denied - Read Only");\r
         FreePool (Info);\r
@@ -1365,13 +1365,13 @@ MainCommandDisplayHelp (
   EFI_KEY_DATA    KeyData;\r
   EFI_STATUS      Status;\r
   UINTN           EventIndex;\r
-  \r
+\r
   //\r
-  // print helpInfo      \r
+  // print helpInfo\r
   //\r
   for (CurrentLine = 0; 0 != MainMenuHelpInfo[CurrentLine]; CurrentLine++) {\r
     InfoString = HiiGetString(gShellDebug1HiiHandle, MainMenuHelpInfo[CurrentLine], NULL);\r
-    ShellPrintEx (0, CurrentLine+1, L"%E%s%N", InfoString);        \r
+    ShellPrintEx (0, CurrentLine+1, L"%E%s%N", InfoString);\r
   }\r
 \r
   //\r
@@ -1414,7 +1414,7 @@ MainCommandDisplayHelp (
   FileBufferRestorePosition ();\r
   FileBufferNeedRefresh = TRUE;\r
   FileBufferOnlyLineNeedRefresh = FALSE;\r
-  FileBufferRefresh ();  \r
+  FileBufferRefresh ();\r
 \r
   return EFI_SUCCESS;\r
 }\r
@@ -1649,10 +1649,10 @@ MainEditorRefresh (
   //\r
   // call the components refresh function\r
   //\r
-  if (EditorFirst \r
-    || StrCmp (FileBufferBackupVar.FileName, FileBuffer.FileName) != 0 \r
-    || FileBufferBackupVar.FileType != FileBuffer.FileType \r
-    || FileBufferBackupVar.FileModified != FileBuffer.FileModified \r
+  if (EditorFirst\r
+    || StrCmp (FileBufferBackupVar.FileName, FileBuffer.FileName) != 0\r
+    || FileBufferBackupVar.FileType != FileBuffer.FileType\r
+    || FileBufferBackupVar.FileModified != FileBuffer.FileModified\r
     || FileBufferBackupVar.ReadOnly != FileBuffer.ReadOnly) {\r
 \r
     MainTitleBarRefresh (MainEditor.FileBuffer->FileName, MainEditor.FileBuffer->FileType, MainEditor.FileBuffer->ReadOnly, MainEditor.FileBuffer->FileModified, MainEditor.ScreenSize.Column, MainEditor.ScreenSize.Row, 0, 0);\r
@@ -1660,8 +1660,8 @@ MainEditorRefresh (
   }\r
 \r
   if (EditorFirst\r
-    || FileBufferBackupVar.FilePosition.Row != FileBuffer.FilePosition.Row \r
-    || FileBufferBackupVar.FilePosition.Column != FileBuffer.FilePosition.Column \r
+    || FileBufferBackupVar.FilePosition.Row != FileBuffer.FilePosition.Row\r
+    || FileBufferBackupVar.FilePosition.Column != FileBuffer.FilePosition.Column\r
     || FileBufferBackupVar.ModeInsert != FileBuffer.ModeInsert\r
     || StatusBarGetRefresh()) {\r
 \r
@@ -1906,9 +1906,9 @@ MainEditorKeyInput (
           Status = MenuBarDispatchFunctionKey (&KeyData.Key);\r
         } else {\r
           StatusBarSetStatusString (L"Unknown Command");\r
-          FileBufferMouseNeedRefresh = FALSE;  \r
+          FileBufferMouseNeedRefresh = FALSE;\r
         }\r
-        \r
+\r
         if (Status != EFI_SUCCESS && Status != EFI_OUT_OF_RESOURCES) {\r
           //\r
           // not already has some error status\r
@@ -1975,6 +1975,6 @@ MainEditorBackup (
   )\r
 {\r
   FileBufferBackup ();\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
index f79914813553d612b17ee35fbdeccdace41597d7..1406107392584a66fedbbb5a38b0652fe644cb8e 100644 (file)
@@ -1,6 +1,6 @@
 // /**\r
 //\r
-// Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
 // 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
@@ -20,7 +20,7 @@
 \r
 #langdef   en-US "english"\r
 \r
-#string STR_EDIT_LIBEDITOR_TITLEBAR                    #language en-US "%EMainEditor init failed on TitleBar init\r\n%N"\r
+#string STR_EDIT_LIBEDITOR_TITLEBAR           #language en-US "%EMainEditor init failed on TitleBar init\r\n%N"\r
 #string STR_EDIT_LIBEDITOR_MAINMENU           #language en-US "%EMainEditor init was not successful on MainMenu init\r\n%N"\r
 #string STR_EDIT_LIBEDITOR_STATUSBAR          #language en-US "%EMainEditor init was not successful on StatusBar init\r\n%N"\r
 #string STR_EDIT_LIBEDITOR_INPUTBAR           #language en-US "%EMainEditor init was not successful on InputBar init\r\n%N"\r
 #string STR_EDIT_LIBEDITOR_TITLEBAR_CLEANUP   #language en-US "TitleBar cleanup was not successful\r\n"\r
 #string STR_EDIT_LIBEDITOR_MENUBAR_CLEANUP    #language en-US "MenuBar cleanup was not successful\r\n"\r
 #string STR_EDIT_LIBEDITOR_STATUSBAR_CLEANUP  #language en-US "StatusBar cleanup was not successful\r\n"\r
-#string STR_EDIT_LIBEDITOR_INPUTBAR_CLEANUP      #language en-US "InputBar cleanup was not successful\r\n"\r
-#string STR_EDIT_LIBEDITOR_FILEBUFFER_CLEANUP  #language en-US "FileBuffer cleanup was not successful\r\n"\r
+#string STR_EDIT_LIBEDITOR_INPUTBAR_CLEANUP    #language en-US "InputBar cleanup was not successful\r\n"\r
+#string STR_EDIT_LIBEDITOR_FILEBUFFER_CLEANUP  #language en-US "FileBuffer cleanup was not successful\r\n"\r
 #string STR_EDIT_LIBEDITOR_MAINEDITOR_INIT    #language en-US "%EMainEditor init was not succesful on TitleBar init\r\n%N"\r
 #string STR_EDIT_LIBINPUTBAR_MAININPUTBAR     #language en-US "%s"\r
-#string STR_EDIT_LIBMENUBAR_OPEN_FILE                      #language en-US "Open File"\r
-#string STR_EDIT_LIBMENUBAR_SAVE_FILE                      #language en-US "Save File"\r
+#string STR_EDIT_LIBMENUBAR_OPEN_FILE          #language en-US "Open File"\r
+#string STR_EDIT_LIBMENUBAR_SAVE_FILE          #language en-US "Save File"\r
 #string STR_EDIT_LIBMENUBAR_EXIT              #language en-US "Exit"\r
-#string STR_EDIT_LIBMENUBAR_CUT_LINE                       #language en-US "Cut Line"\r
-#string STR_EDIT_LIBMENUBAR_PASTE_LINE                   #language en-US "Paste Line"\r
-#string STR_EDIT_LIBMENUBAR_GO_TO_LINE                   #language en-US "Go To Line"\r
-#string STR_EDIT_LIBMENUBAR_SEARCH                                 #language en-US "Search"\r
-#string STR_EDIT_LIBMENUBAR_SEARCH_REPLACE       #language en-US "Search/Replace"\r
-#string STR_EDIT_LIBMENUBAR_FILE_TYPE                #language en-US "File Type"\r
-#string STR_EDIT_LIBMENUBAR_F1                                       #language en-US "F1"\r
-#string STR_EDIT_LIBMENUBAR_F2                                       #language en-US "F2"\r
-#string STR_EDIT_LIBMENUBAR_F3                                       #language en-US "F3"\r
-#string STR_EDIT_LIBMENUBAR_F4                                       #language en-US "F4"\r
-#string STR_EDIT_LIBMENUBAR_F5                                       #language en-US "F5"\r
-#string STR_EDIT_LIBMENUBAR_F6                                       #language en-US "F6"\r
-#string STR_EDIT_LIBMENUBAR_F7                                       #language en-US "F7"\r
-#string STR_EDIT_LIBMENUBAR_F8                                       #language en-US "F8"\r
-#string STR_EDIT_LIBMENUBAR_F9                                       #language en-US "F9"\r
-#string STR_EDIT_LIBMENUBAR_F10                                      #language en-US "F10"\r
-#string STR_EDIT_LIBMENUBAR_F11                                      #language en-US "F11"\r
-#string STR_EDIT_LIBMENUBAR_F12                                      #language en-US "F12"\r
-#string STR_EDIT_LIBMENUBAR_CTRL_E                                   #language en-US "Ctrl+E"\r
-#string STR_EDIT_LIBMENUBAR_CTRL_W                                   #language en-US "Ctrl+W"\r
+#string STR_EDIT_LIBMENUBAR_CUT_LINE          #language en-US "Cut Line"\r
+#string STR_EDIT_LIBMENUBAR_PASTE_LINE        #language en-US "Paste Line"\r
+#string STR_EDIT_LIBMENUBAR_GO_TO_LINE        #language en-US "Go To Line"\r
+#string STR_EDIT_LIBMENUBAR_SEARCH            #language en-US "Search"\r
+#string STR_EDIT_LIBMENUBAR_SEARCH_REPLACE    #language en-US "Search/Replace"\r
+#string STR_EDIT_LIBMENUBAR_FILE_TYPE          #language en-US "File Type"\r
+#string STR_EDIT_LIBMENUBAR_F1                #language en-US "F1"\r
+#string STR_EDIT_LIBMENUBAR_F2                #language en-US "F2"\r
+#string STR_EDIT_LIBMENUBAR_F3                #language en-US "F3"\r
+#string STR_EDIT_LIBMENUBAR_F4                #language en-US "F4"\r
+#string STR_EDIT_LIBMENUBAR_F5                #language en-US "F5"\r
+#string STR_EDIT_LIBMENUBAR_F6                #language en-US "F6"\r
+#string STR_EDIT_LIBMENUBAR_F7                #language en-US "F7"\r
+#string STR_EDIT_LIBMENUBAR_F8                #language en-US "F8"\r
+#string STR_EDIT_LIBMENUBAR_F9                #language en-US "F9"\r
+#string STR_EDIT_LIBMENUBAR_F10               #language en-US "F10"\r
+#string STR_EDIT_LIBMENUBAR_F11               #language en-US "F11"\r
+#string STR_EDIT_LIBMENUBAR_F12               #language en-US "F12"\r
+#string STR_EDIT_LIBMENUBAR_CTRL_E               #language en-US "Ctrl+E"\r
+#string STR_EDIT_LIBMENUBAR_CTRL_W               #language en-US "Ctrl+W"\r
 #string STR_EDIT_HELP_TITLE                   #language en-US "Help                                                        \n"\r
 #string STR_EDIT_HELP_BLANK                   #language en-US "                                                            \n"\r
 #string STR_EDIT_HELP_LIST_TITLE              #language en-US "Control Key   Function Key   Command                        \n"\r
@@ -69,7 +69,7 @@
 #string STR_EDIT_HELP_OPEN_FILE               #language en-US "Ctrl-O        F8             Open File                      \n"\r
 #string STR_EDIT_HELP_FILE_TYPE               #language en-US "Ctrl-T        F9             File Type                      \n"\r
 #string STR_EDIT_HELP_EXIT_HELP               #language en-US "Use Ctrl-W to exit this help                                \n"\r
-#string STR_EDIT_MAIN_INVALID_FILE_NAME              #language en-US "%Hedit%N: Invalid File Name\r\n"\r
-#string STR_EDIT_MAIN_INIT_FAILED                                    #language en-US "%Hedit%N: Initialization was not successful\r\n"\r
-#string STR_EDIT_MAIN_BUFFER                                           #language en-US "%Hedit%N: %s\r\n"\r
-#string STR_EDIT_MAIN_UNKNOWN_EDITOR_ERR                 #language en-US "%Hedit%N: Unknown Editor Error\r\n"\r
+#string STR_EDIT_MAIN_INVALID_FILE_NAME        #language en-US "%Hedit%N: Invalid File Name\r\n"\r
+#string STR_EDIT_MAIN_INIT_FAILED              #language en-US "%Hedit%N: Initialization was not successful\r\n"\r
+#string STR_EDIT_MAIN_BUFFER                  #language en-US "%Hedit%N: %s\r\n"\r
+#string STR_EDIT_MAIN_UNKNOWN_EDITOR_ERR      #language en-US "%Hedit%N: Unknown Editor Error\r\n"\r
index 6c6fc70bab4aee1ead43a7603ec59b1bf8d7bc44..2c8df9d4a6044769764b8aa1138be41ab030d583 100644 (file)
@@ -251,7 +251,7 @@ InputBarRefresh (
   }\r
 \r
   mReturnString[Size] = CHAR_NULL;\r
-  \r
+\r
 \r
   //\r
   // restore screen attributes\r
index 58e90ac5b2eb466e4df321783ab4b9f0864d7cff..8490b263cbcd685a690c13ddfc795043723b5e5d 100644 (file)
@@ -47,7 +47,7 @@ MenuBarInit (
   CONST EDITOR_MENU_ITEM  *ItemsWalker;\r
 \r
   for (NumItems = 0, ItemsWalker = Items ; ItemsWalker != NULL && ItemsWalker->Function != NULL ; ItemsWalker++,NumItems++);\r
-  \r
+\r
   MenuItems = AllocateZeroPool((NumItems+1) * sizeof(EDITOR_MENU_ITEM));\r
   if (MenuItems == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r
@@ -69,7 +69,7 @@ ControlHotKeyInit (
   )\r
 {\r
   ControlBasedMenuFunctions = Items;\r
-  return EFI_SUCCESS; \r
+  return EFI_SUCCESS;\r
 }\r
 /**\r
   Refresh function for the menu bar.\r
@@ -138,7 +138,7 @@ MenuBarRefresh (
 \r
   @param[in] Key                The pressed key.\r
 \r
-  @retval EFI_NOT_FOUND         The key was not a valid function key \r
+  @retval EFI_NOT_FOUND         The key was not a valid function key\r
                                 (an error was sent to the status bar).\r
   @return The return value from the called dispatch function.\r
 **/\r
@@ -167,7 +167,7 @@ MenuBarDispatchFunctionKey (
 \r
   @param[in] KeyData                The pressed key.\r
 \r
-  @retval EFI_NOT_FOUND         The key was not a valid control-based key \r
+  @retval EFI_NOT_FOUND         The key was not a valid control-based key\r
                                 (an error was sent to the status bar).\r
   @return EFI_SUCCESS.\r
 **/\r
index a15617edf6fb4f0889edcf25e27da934f32df668..e7554996497d58bb0a8b6a9ef4d286b81b14a6b4 100644 (file)
@@ -93,7 +93,7 @@ MenuBarRefresh (
 \r
   @param[in] Key                The pressed key.\r
 \r
-  @retval EFI_NOT_FOUND         The key was not a valid function key \r
+  @retval EFI_NOT_FOUND         The key was not a valid function key\r
                                 (an error was sent to the status bar).\r
   @return The return value from the called dispatch function.\r
 **/\r
@@ -107,7 +107,7 @@ MenuBarDispatchFunctionKey (
 \r
   @param[in] KeyData                The pressed key.\r
 \r
-  @retval EFI_NOT_FOUND         The key was not a valid control-based key \r
+  @retval EFI_NOT_FOUND         The key was not a valid control-based key\r
                                 (an error was sent to the status bar).\r
   @return EFI_SUCCESS.\r
 **/\r
index e7792c17b005ced641558ddd2962c9c160c66d45..f0110333b79a36fd6a207cea88519b0372205367 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Implements statusbar interface functions.\r
 \r
-  Copyright (c) 2005 - 2014, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -71,7 +71,7 @@ typedef union {
 /**\r
   Cause the status bar to refresh it's printing on the screen.\r
 \r
-  @param[in] EditorFirst      TRUE to indicate the first launch of the editor.  \r
+  @param[in] EditorFirst      TRUE to indicate the first launch of the editor.\r
                               FALSE otherwise.\r
   @param[in] LastRow          LastPrintable row.\r
   @param[in] LastCol          Last printable column.\r
index 61d19cc6246ff23560059b26fadbefc517ac9f06..16b721d311946ecaf75dc7609c9b8729977be3df 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Declares statusbar interface functions.\r
 \r
-  Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -38,7 +38,7 @@ StatusBarCleanup (
 /**\r
   Cause the status bar to refresh it's printing on the screen.\r
 \r
-  @param[in] EditorFirst      TRUE to indicate the first launch of the editor.  \r
+  @param[in] EditorFirst      TRUE to indicate the first launch of the editor.\r
                               FALSE otherwise.\r
   @param[in] LastRow          LastPrintable row.\r
   @param[in] LastCol          Last printable column.\r
index d94acf4e4b1acc5087610e9018b51b844870455f..33bdb038250a10f4106549ed493378d7f57a3982 100644 (file)
@@ -2,7 +2,7 @@
   Main file for EfiCompress shell Debug1 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -70,7 +70,7 @@ ShellCommandRunEfiCompress (
   Status = ShellCommandLineParse (EmptyParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"eficompress", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"eficompress", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -78,10 +78,10 @@ ShellCommandRunEfiCompress (
     }\r
   } else {\r
     if (ShellCommandLineGetCount(Package) > 3) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"eficompress");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"eficompress");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (ShellCommandLineGetCount(Package) < 3) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"eficompress");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"eficompress");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       TempParam = ShellCommandLineGetRawValue(Package, 1);\r
@@ -89,26 +89,26 @@ ShellCommandRunEfiCompress (
       InFileName = ShellFindFilePath(TempParam);\r
       OutFileName = ShellCommandLineGetRawValue(Package, 2);\r
       if (InFileName == NULL) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_FIND_FAIL), gShellDebug1HiiHandle, L"eficompress", TempParam);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_FIND_FAIL), gShellDebug1HiiHandle, L"eficompress", TempParam);\r
         ShellStatus = SHELL_NOT_FOUND;\r
       } else {\r
         if (ShellIsDirectory(InFileName) == EFI_SUCCESS){\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_NOT_DIR), gShellDebug1HiiHandle, L"eficompress", InFileName);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_NOT_DIR), gShellDebug1HiiHandle, L"eficompress", InFileName);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         }\r
         if (ShellIsDirectory(OutFileName) == EFI_SUCCESS){\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_NOT_DIR), gShellDebug1HiiHandle, L"eficompress", OutFileName);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_NOT_DIR), gShellDebug1HiiHandle, L"eficompress", OutFileName);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         }\r
         if (ShellStatus == SHELL_SUCCESS) {\r
           Status = ShellOpenFileByName(InFileName, &InShellFileHandle, EFI_FILE_MODE_READ, 0);\r
           if (EFI_ERROR(Status)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"eficompress", ShellCommandLineGetRawValue(Package, 1));  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"eficompress", ShellCommandLineGetRawValue(Package, 1));\r
             ShellStatus = SHELL_NOT_FOUND;\r
           }\r
           Status = ShellOpenFileByName(OutFileName, &OutShellFileHandle, EFI_FILE_MODE_READ|EFI_FILE_MODE_WRITE|EFI_FILE_MODE_CREATE, 0);\r
           if (EFI_ERROR(Status)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"eficompress", ShellCommandLineGetRawValue(Package, 2));  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"eficompress", ShellCommandLineGetRawValue(Package, 2));\r
             ShellStatus = SHELL_NOT_FOUND;\r
           }\r
         }\r
@@ -140,7 +140,7 @@ ShellCommandRunEfiCompress (
             OutSize2 = (UINTN)OutSize;\r
             Status = gEfiShellProtocol->WriteFile(OutShellFileHandle, &OutSize2, OutBuffer);\r
             if (EFI_ERROR(Status)) {\r
-              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_WRITE_FAIL), gShellDebug1HiiHandle, L"eficompress", OutFileName);  \r
+              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_WRITE_FAIL), gShellDebug1HiiHandle, L"eficompress", OutFileName);\r
               ShellStatus = SHELL_DEVICE_ERROR;\r
             }\r
           }\r
index 28c37ee76985de1a12969e8c37c7f57ab1e13812..8e34d64c9dcde6b493fb432ac5071f3e03f98d4c 100644 (file)
@@ -2,7 +2,7 @@
   Main file for EfiDecompress shell Debug1 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -77,7 +77,7 @@ ShellCommandRunEfiDecompress (
   Status = ShellCommandLineParse (EmptyParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"efidecompress", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"efidecompress", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -85,10 +85,10 @@ ShellCommandRunEfiDecompress (
     }\r
   } else {\r
     if (ShellCommandLineGetCount(Package) > 3) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"efidecompress");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"efidecompress");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (ShellCommandLineGetCount(Package) < 3) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"efidecompress");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"efidecompress");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       TempParam = ShellCommandLineGetRawValue(Package, 1);\r
@@ -96,21 +96,21 @@ ShellCommandRunEfiDecompress (
       InFileName = ShellFindFilePath(TempParam);\r
       OutFileName = ShellCommandLineGetRawValue(Package, 2);\r
       if (InFileName == NULL) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_FIND_FAIL), gShellDebug1HiiHandle, L"efidecompress", TempParam);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_FIND_FAIL), gShellDebug1HiiHandle, L"efidecompress", TempParam);\r
         ShellStatus = SHELL_NOT_FOUND;\r
       } else {\r
         if (ShellIsDirectory(InFileName) == EFI_SUCCESS){\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_NOT_DIR), gShellDebug1HiiHandle, L"efidecompress", InFileName);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_NOT_DIR), gShellDebug1HiiHandle, L"efidecompress", InFileName);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         }\r
         if (ShellIsDirectory(OutFileName) == EFI_SUCCESS){\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_NOT_DIR), gShellDebug1HiiHandle, L"efidecompress", OutFileName);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_NOT_DIR), gShellDebug1HiiHandle, L"efidecompress", OutFileName);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         }\r
         if (ShellStatus == SHELL_SUCCESS) {\r
           Status = ShellOpenFileByName(InFileName, &InFileHandle, EFI_FILE_MODE_READ, 0);\r
           if (EFI_ERROR(Status)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"efidecompress", ShellCommandLineGetRawValue(Package, 1));  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"efidecompress", ShellCommandLineGetRawValue(Package, 1));\r
             ShellStatus = SHELL_NOT_FOUND;\r
           }\r
         }\r
index 1048ecd41593a7d256ed187f88fbbaffd3493eb3..9b0af6d92402b209a0a1ec7540159a9d87c8b406 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   Defines HBufferImage - the view of the file that is visible at any point,\r
   as well as the event handlers for editing the file\r
-  \r
-  Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved. <BR>\r
+\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -138,7 +138,7 @@ HBufferImageInit (
 }\r
 \r
 /**\r
-  Backup function for HBufferImage. Only a few fields need to be backup. \r
+  Backup function for HBufferImage. Only a few fields need to be backup.\r
   This is for making the file buffer refresh as few as possible.\r
 \r
   @retval EFI_SUCCESS  The operation was successful.\r
@@ -190,7 +190,7 @@ HBufferImageBackup (
     Lines\r
     CurrentLine\r
     NumLines\r
-    ListHead \r
+    ListHead\r
 \r
   @retval EFI_SUCCESS  The operation was successful.\r
 **/\r
@@ -946,7 +946,7 @@ HBufferImageRead (
   case FileTypeMemBuffer:\r
     Status = HMemImageRead (MemOffset, MemSize, Recover);\r
     break;\r
-    \r
+\r
   default:\r
     Status = EFI_NOT_FOUND;\r
     break;\r
@@ -1013,7 +1013,7 @@ HBufferImageSave (
   case FileTypeMemBuffer:\r
     Status = HMemImageSave (MemOffset, MemSize);\r
     break;\r
-    \r
+\r
   default:\r
     Status = EFI_NOT_FOUND;\r
     break;\r
@@ -1030,7 +1030,7 @@ HBufferImageSave (
   Create a new line and append it to the line list.\r
     Fields affected:\r
     NumLines\r
-    Lines \r
+    Lines\r
 \r
   @retval NULL    create line failed.\r
   @return         the line created.\r
@@ -1368,7 +1368,7 @@ HBufferImageDoCharInput (
   Check user specified FileRow is above current screen.\r
 \r
   @param[in] FileRow  Row of file position ( start from 1 ).\r
-  \r
+\r
   @retval TRUE   It is above the current screen.\r
   @retval FALSE  It is not above the current screen.\r
 \r
@@ -1880,12 +1880,12 @@ HBufferImageGetTotalSize (
 \r
 /**\r
   Delete character from buffer.\r
-  \r
+\r
   @param[in] Pos      Position, Pos starting from 0.\r
   @param[in] Count    The Count of characters to delete.\r
   @param[out] DeleteBuffer    The DeleteBuffer.\r
 \r
-  @retval EFI_SUCCESS Success \r
+  @retval EFI_SUCCESS Success\r
 **/\r
 EFI_STATUS\r
 HBufferImageDeleteCharacterFromBuffer (\r
@@ -2014,7 +2014,7 @@ HBufferImageDeleteCharacterFromBuffer (
   @param[in] Count      Count of characters to add.\r
   @param[in] AddBuffer  Add buffer.\r
 \r
-  @retval EFI_SUCCESS   Success.  \r
+  @retval EFI_SUCCESS   Success.\r
 **/\r
 EFI_STATUS\r
 HBufferImageAddCharacterToBuffer (\r
@@ -2166,7 +2166,7 @@ HBufferImageDoDelete (
 \r
 /**\r
   Change the raw buffer to a list of lines for the UI.\r
-  \r
+\r
   @param[in] Buffer   The pointer to the buffer to fill.\r
   @param[in] Bytes    The size of the buffer in bytes.\r
 \r
@@ -2231,7 +2231,7 @@ HBufferImageBufferToList (
 \r
 /**\r
   Change the list of lines from the UI to a raw buffer.\r
-  \r
+\r
   @param[in] Buffer   The pointer to the buffer to fill.\r
   @param[in] Bytes    The size of the buffer in bytes.\r
 \r
index 04deada289147be242b6113fcbf4b4529830073e..2068a8fa06aae6e5e53b9caa57bafc48b708b026 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
-    Defines BufferImage - the view of the file that is visible at any point, \r
+    Defines BufferImage - the view of the file that is visible at any point,\r
     as well as the event handlers for editing the file\r
-  \r
-  Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
+\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -72,7 +72,7 @@ HBufferImageHandleInput (
   );\r
 \r
 /**\r
-  Backup function for HBufferImage. Only a few fields need to be backup. \r
+  Backup function for HBufferImage. Only a few fields need to be backup.\r
   This is for making the file buffer refresh as few as possible.\r
 \r
   @retval EFI_SUCCESS  The operation was successful.\r
@@ -151,7 +151,7 @@ HBufferImageMovePosition (
   Create a new line and append it to the line list.\r
     Fields affected:\r
     NumLines\r
-    Lines \r
+    Lines\r
 \r
   @retval NULL    create line failed.\r
   @return         the line created.\r
@@ -174,12 +174,12 @@ HBufferImageFree (
 \r
 /**\r
   Delete character from buffer.\r
-  \r
+\r
   @param[in] Pos      Position, Pos starting from 0.\r
   @param[in] Count    The Count of characters to delete.\r
   @param[out] DeleteBuffer    The DeleteBuffer.\r
 \r
-  @retval EFI_SUCCESS Success \r
+  @retval EFI_SUCCESS Success\r
 **/\r
 EFI_STATUS\r
 HBufferImageDeleteCharacterFromBuffer (\r
@@ -195,7 +195,7 @@ HBufferImageDeleteCharacterFromBuffer (
   @param[in] Count      Count of characters to add.\r
   @param[in] AddBuffer  Add buffer.\r
 \r
-  @retval EFI_SUCCESS   Success.  \r
+  @retval EFI_SUCCESS   Success.\r
 **/\r
 EFI_STATUS\r
 HBufferImageAddCharacterToBuffer (\r
@@ -206,7 +206,7 @@ HBufferImageAddCharacterToBuffer (
 \r
 /**\r
   Change the raw buffer to a list of lines for the UI.\r
-  \r
+\r
   @param[in] Buffer   The pointer to the buffer to fill.\r
   @param[in] Bytes    The size of the buffer in bytes.\r
 \r
@@ -221,7 +221,7 @@ HBufferImageBufferToList (
 \r
 /**\r
   Change the list of lines from the UI to a raw buffer.\r
-  \r
+\r
   @param[in] Buffer   The pointer to the buffer to fill.\r
   @param[in] Bytes    The size of the buffer in bytes.\r
 \r
index 4d5bfb391ff5366df74c8dc307a639f8a64625f5..129fde13dabf86473b06d0afa8245d9726069315 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
     Functions to deal with Clip Board\r
-  \r
-  Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
+\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
index 8066c292479cc79098811e690791d9dc4aec2384..da5457c385e1845279eebf08523f8d33b375e5ef 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
-    Defines DiskImage - the view of the file that is visible at any point, \r
+    Defines DiskImage - the view of the file that is visible at any point,\r
     as well as the event handlers for editing the file\r
-  \r
-  Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
+\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
index 8deb643f07ccf1b7a2a232b025cf48407ed60dbd..9a76e7a12055ec10c9b4daf7ae075d5bd3ce050e 100644 (file)
@@ -39,7 +39,7 @@ HEFI_EDITOR_DISK_IMAGE            HDiskImageConst = {
 \r
 /**\r
   Initialization function for HDiskImage.\r
\r
+\r
   @retval EFI_SUCCESS     The operation was successful.\r
   @retval EFI_LOAD_ERROR  A load error occured.\r
 **/\r
@@ -59,7 +59,7 @@ HDiskImageInit (
 }\r
 \r
 /**\r
-  Backup function for HDiskImage. Only a few fields need to be backup.   \r
+  Backup function for HDiskImage. Only a few fields need to be backup.\r
   This is for making the Disk buffer refresh as few as possible.\r
 \r
   @retval EFI_SUCCESS           The operation was successful.\r
@@ -154,7 +154,7 @@ HDiskImageSetDiskNameOffsetSize (
   @retval EFI_SUCCESS           The operation was successful.\r
   @retval EFI_OUT_OF_RESOURCES  A memory allocation failed.\r
   @retval EFI_LOAD_ERROR        A load error occured.\r
-  @retval EFI_INVALID_PARAMETER A parameter was invalid.  \r
+  @retval EFI_INVALID_PARAMETER A parameter was invalid.\r
 **/\r
 EFI_STATUS\r
 HDiskImageRead (\r
@@ -326,7 +326,7 @@ HDiskImageRead (
   @retval EFI_SUCCESS           The operation was successful.\r
   @retval EFI_OUT_OF_RESOURCES  A memory allocation failed.\r
   @retval EFI_LOAD_ERROR        A load error occured.\r
-  @retval EFI_INVALID_PARAMETER A parameter was invalid.  \r
+  @retval EFI_INVALID_PARAMETER A parameter was invalid.\r
 **/\r
 EFI_STATUS\r
 HDiskImageSave (\r
index 06fb53020abc1755faf78be34c256738f6ebda2b..fbe04837693891e82e9d41f6150d2afc6c2ea736 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
-  Defines DiskImage - the view of the file that is visible at any point, \r
+  Defines DiskImage - the view of the file that is visible at any point,\r
   as well as the event handlers for editing the file\r
-  \r
-  Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
+\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -20,7 +20,7 @@
 \r
 /**\r
   Initialization function for HDiskImage.\r
\r
+\r
   @retval EFI_SUCCESS     The operation was successful.\r
   @retval EFI_LOAD_ERROR  A load error occured.\r
 **/\r
@@ -40,7 +40,7 @@ HDiskImageCleanup (
   );\r
 \r
 /**\r
-  Backup function for HDiskImage. Only a few fields need to be backup.   \r
+  Backup function for HDiskImage. Only a few fields need to be backup.\r
   This is for making the Disk buffer refresh as few as possible.\r
 \r
   @retval EFI_SUCCESS           The operation was successful.\r
@@ -62,7 +62,7 @@ HDiskImageBackup (
   @retval EFI_SUCCESS           The operation was successful.\r
   @retval EFI_OUT_OF_RESOURCES  A memory allocation failed.\r
   @retval EFI_LOAD_ERROR        A load error occured.\r
-  @retval EFI_INVALID_PARAMETER A parameter was invalid.  \r
+  @retval EFI_INVALID_PARAMETER A parameter was invalid.\r
 **/\r
 EFI_STATUS\r
 HDiskImageRead (\r
@@ -83,7 +83,7 @@ HDiskImageRead (
   @retval EFI_SUCCESS           The operation was successful.\r
   @retval EFI_OUT_OF_RESOURCES  A memory allocation failed.\r
   @retval EFI_LOAD_ERROR        A load error occured.\r
-  @retval EFI_INVALID_PARAMETER A parameter was invalid.  \r
+  @retval EFI_INVALID_PARAMETER A parameter was invalid.\r
 **/\r
 EFI_STATUS\r
 HDiskImageSave (\r
index d9fd72cdd2eea475172cab7a46969b603dc6a7b8..9f9e54c598f1b96da6f3cf4bdd5d81113be320db 100644 (file)
@@ -37,7 +37,7 @@ HEFI_EDITOR_BUFFER_IMAGE          HFileImageConst = {
 \r
 /**\r
   Initialization function for HFileImage\r
\r
+\r
   @retval EFI_SUCCESS     The operation was successful.\r
 **/\r
 EFI_STATUS\r
@@ -60,7 +60,7 @@ HFileImageInit (
 }\r
 \r
 /**\r
-  Backup function for HFileImage. Only a few fields need to be backup. \r
+  Backup function for HFileImage. Only a few fields need to be backup.\r
   This is for making the file buffer refresh as few as possible.\r
 \r
   @retval EFI_SUCCESS           The operation was successful.\r
index ed27ad03ae257a3cc6c972680f6cde7045858243..5f5b2cfe77ea47ebece7b7e04e0a3d4ee6b71736 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
-  Defines FileImage - the view of the file that is visible at any point, \r
+  Defines FileImage - the view of the file that is visible at any point,\r
   as well as the event handlers for editing the file\r
-  \r
-  Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
+\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -20,7 +20,7 @@
 \r
 /**\r
   Initialization function for HFileImage\r
\r
+\r
   @retval EFI_SUCCESS     The operation was successful.\r
 **/\r
 EFI_STATUS\r
@@ -39,7 +39,7 @@ HFileImageCleanup (
   );\r
 \r
 /**\r
-  Backup function for HFileImage. Only a few fields need to be backup. \r
+  Backup function for HFileImage. Only a few fields need to be backup.\r
   This is for making the file buffer refresh as few as possible.\r
 \r
   @retval EFI_SUCCESS           The operation was successful.\r
index 118aa7c3ed43976cc8b605f70bec1ba636bfe93a..199cc42c7f1af5deee2a1522d5f047cc31d19afa 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   Main entry point of editor\r
-  \r
+\r
   (C) Copyright 2014-2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -74,7 +74,7 @@ ShellCommandRunHexEdit (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"hexedit", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"hexedit", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -86,10 +86,10 @@ ShellCommandRunHexEdit (
     //\r
     if (ShellCommandLineGetFlag(Package, L"-d")){\r
       if (ShellCommandLineGetCount(Package) < 4) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"hexedit");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"hexedit");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else if (ShellCommandLineGetCount(Package) > 4) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"hexedit");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"hexedit");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else {\r
         WhatToDo = FileTypeDiskBuffer;\r
@@ -98,7 +98,7 @@ ShellCommandRunHexEdit (
         Size    = ShellStrToUintn(ShellCommandLineGetRawValue(Package, 3));\r
       }\r
       if (Offset == (UINTN)-1 || Size == (UINTN)-1) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDebug1HiiHandle, L"hexedit", L"-d");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDebug1HiiHandle, L"hexedit", L"-d");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       }\r
     }\r
@@ -108,15 +108,15 @@ ShellCommandRunHexEdit (
     //\r
     if (ShellCommandLineGetFlag(Package, L"-f") && (WhatToDo == FileTypeNone)){\r
       if (ShellCommandLineGetCount(Package) < 2) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"hexedit");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"hexedit");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else if (ShellCommandLineGetCount(Package) > 2) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"hexedit");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"hexedit");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else {\r
         Name      = ShellCommandLineGetRawValue(Package, 1);\r
         if (Name == NULL || !IsValidFileName(Name)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"hexedit", Name);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"hexedit", Name);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else {\r
           WhatToDo  = FileTypeFileBuffer;\r
@@ -129,10 +129,10 @@ ShellCommandRunHexEdit (
     //\r
     if (ShellCommandLineGetFlag(Package, L"-m") && (WhatToDo == FileTypeNone)){\r
       if (ShellCommandLineGetCount(Package) < 3) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"hexedit");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"hexedit");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else if (ShellCommandLineGetCount(Package) > 3) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"hexedit");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"hexedit");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else {\r
         WhatToDo = FileTypeMemBuffer;\r
@@ -143,10 +143,10 @@ ShellCommandRunHexEdit (
     Name = ShellCommandLineGetRawValue(Package, 1);\r
     if (WhatToDo == FileTypeNone && Name != NULL) {\r
       if (ShellCommandLineGetCount(Package) > 2) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"hexedit");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"hexedit");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else if (!IsValidFileName(Name)) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"hexedit", Name);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"hexedit", Name);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else {\r
         WhatToDo  = FileTypeFileBuffer;\r
@@ -154,7 +154,7 @@ ShellCommandRunHexEdit (
     } else if (WhatToDo == FileTypeNone) {\r
       if (gEfiShellProtocol->GetCurDir(NULL) == NULL) {\r
         ShellStatus = SHELL_NOT_FOUND;\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_CWD), gShellDebug1HiiHandle, L"hexedit");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_CWD), gShellDebug1HiiHandle, L"hexedit");\r
       } else {\r
         NewName = EditGetDefaultFileName(L"bin");\r
         Name = NewName;\r
@@ -163,10 +163,10 @@ ShellCommandRunHexEdit (
     }\r
 \r
     if (ShellStatus == SHELL_SUCCESS && WhatToDo == FileTypeNone) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"hexedit");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"hexedit");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (WhatToDo == FileTypeFileBuffer && ShellGetCurrentDir(NULL) == NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_CWD), gShellDebug1HiiHandle, L"hexedit");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_CWD), gShellDebug1HiiHandle, L"hexedit");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     }\r
 \r
@@ -252,7 +252,7 @@ ShellCommandRunHexEdit (
       // print editor exit code on screen\r
       //\r
       if (Status == EFI_OUT_OF_RESOURCES) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_OUT_MEM), gShellDebug1HiiHandle, L"hexedit");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_OUT_MEM), gShellDebug1HiiHandle, L"hexedit");\r
       } else if (EFI_ERROR(Status)){\r
         if (Buffer != NULL) {\r
           if (StrCmp (Buffer, L"") != 0) {\r
index d0a4bf4aae6c56009de20011552556b7de48ad4d..e8d6bb5c75f148b6926737ae2e088fd2ffbaeb91 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Main include file for hex editor\r
-  \r
-  Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
+\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
index 2a0429a4a1bc7c913b7dd8d42dbf0a7f35cef8a5..b02cc9d2623faa6666394d78e1009a6318a2b7f8 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
   data types that are used by editor\r
-  \r
+\r
   Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
index d9591ca13da0f6d663db305bd5b153a65c459573..a87a19ff97bbecc8b5d8104a9fea51e9d3cfa746 100644 (file)
@@ -1,6 +1,6 @@
 // /**\r
 //\r
-// Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
 // (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -27,7 +27,7 @@
 #string STR_HEXEDIT_DISKNAME              #language en-US  "    %H-d   DiskName FirstBlockNo.   BlockNumber%N     Open Disk Block For Editing\n"\r
 #string STR_HEXEDIT_OFFSET_SIZE           #language en-US  "    %H-m   Offset   Size%N                            Open Memory Region For Editing\n"\r
 #string STR_HEXEDIT_FILE_NAME             #language en-US  "%Hhexedit%N: Invalid File Name\n"\r
-#string STR_HEXEDIT_LIBEDITOR_MAINEDITOR_TITLE      #language en-US  "%EMainEditor init failed on TitleBar init\n%N"                   \r
+#string STR_HEXEDIT_LIBEDITOR_MAINEDITOR_TITLE      #language en-US  "%EMainEditor init failed on TitleBar init\n%N"\r
 #string STR_HEXEDIT_LIBEDITOR_MAINEDITOR_MAINMENU   #language en-US  "%EMainEditor init failed on MainMenu init\n%N"\r
 #string STR_HEXEDIT_LIBEDITOR_MAINEDITOR_STATUS     #language en-US  "%EMainEditor init failed on StatusBar init\n%N"\r
 #string STR_HEXEDIT_LIBEDITOR_MAINEDITOR_INPUTBAR   #language en-US  "%EMainEditor init failed on InputBar init\n%N"\r
index 1a89d3d72a95525ed30d5ba58ab5919ff5b6a39d..bf507d2822f29ad05a848e2ad6e217e70158720b 100644 (file)
@@ -1,9 +1,9 @@
 /** @file\r
-    Defines the Main Editor data type - \r
-     - Global variables \r
+    Defines the Main Editor data type -\r
+     - Global variables\r
      - Instances of the other objects of the editor\r
      - Main Interfaces\r
-  \r
+\r
   Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -111,14 +111,14 @@ HMainCommandDisplayHelp (
   EFI_KEY_DATA    KeyData;\r
   EFI_STATUS      Status;\r
   UINTN           EventIndex;\r
-  \r
+\r
   //\r
-  // print helpInfo      \r
+  // print helpInfo\r
   //\r
   for (CurrentLine = 0; 0 != HexMainMenuHelpInfo[CurrentLine]; CurrentLine++) {\r
     InfoString = HiiGetString(gShellDebug1HiiHandle, HexMainMenuHelpInfo[CurrentLine]\r
 , NULL);\r
-    ShellPrintEx (0,CurrentLine+1,L"%E%s%N",InfoString);        \r
+    ShellPrintEx (0,CurrentLine+1,L"%E%s%N",InfoString);\r
   }\r
 \r
   //\r
@@ -245,7 +245,7 @@ HMainCommandGoToOffset (
 \r
 /**\r
   Save current opened buffer.\r
-  If is file buffer, you can save to current file name or \r
+  If is file buffer, you can save to current file name or\r
   save to another file name.\r
 \r
   @retval EFI_SUCCESS             The operation was successful.\r
@@ -375,7 +375,7 @@ HMainCommandSaveBuffer (
   // 7. Update File Name field in Title Bar to B\r
   //       and remove the Modified flag in Title Bar.\r
   //\r
-  Str = CatSPrint(NULL, \r
+  Str = CatSPrint(NULL,\r
           L"File to Save: [%s]",\r
           HMainEditor.BufferImage->FileImage->FileName\r
           );\r
@@ -422,7 +422,7 @@ HMainCommandSaveBuffer (
   // if just enter pressed, so think save to current file name\r
   //\r
   if (StrLen (InputBarGetString()) == 0) {\r
-    FileName = CatSPrint(NULL, \r
+    FileName = CatSPrint(NULL,\r
                 L"%s",\r
                 HMainEditor.BufferImage->FileImage->FileName\r
                 );\r
@@ -476,7 +476,7 @@ HMainCommandSaveBuffer (
         StatusBarSetStatusString (L"Access Denied");\r
         SHELL_FREE_NON_NULL (FileName);\r
         return EFI_SUCCESS;\r
-      } \r
+      }\r
 \r
       SHELL_FREE_NON_NULL(Info);\r
       //\r
@@ -520,7 +520,7 @@ HMainCommandSaveBuffer (
       } // while\r
     } // if opened existing file\r
   } // if OldFile\r
-  \r
+\r
   //\r
   // save file back to disk\r
   //\r
@@ -1803,9 +1803,9 @@ HMainEditorCleanup (
   MenuBarCleanup ();\r
 \r
   StatusBarCleanup ();\r
-  \r
+\r
   InputBarCleanup ();\r
-  \r
+\r
   Status = HBufferImageCleanup ();\r
   if (EFI_ERROR (Status)) {\r
     ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_HEXEDIT_LIBEDITOR_BUFFERIMAGE_CLEAN), gShellDebug1HiiHandle);\r
@@ -1850,28 +1850,28 @@ HMainEditorRefresh (
   if (HMainEditor.BufferImage->BufferType == FileTypeDiskBuffer) {\r
     if (HMainEditor.BufferImage->DiskImage != NULL &&\r
         HBufferImageBackupVar.DiskImage != NULL &&\r
-        (HMainEditor.BufferImage->DiskImage->Offset != HBufferImageBackupVar.DiskImage->Offset || \r
+        (HMainEditor.BufferImage->DiskImage->Offset != HBufferImageBackupVar.DiskImage->Offset ||\r
            HMainEditor.BufferImage->DiskImage->Size != HBufferImageBackupVar.DiskImage->Size) ){\r
       NameChange = TRUE;\r
     }\r
   } else if (HMainEditor.BufferImage->BufferType == FileTypeMemBuffer) {\r
     if (HMainEditor.BufferImage->MemImage != NULL &&\r
         HBufferImageBackupVar.MemImage != NULL &&\r
-        (HMainEditor.BufferImage->MemImage->Offset != HBufferImageBackupVar.MemImage->Offset || \r
+        (HMainEditor.BufferImage->MemImage->Offset != HBufferImageBackupVar.MemImage->Offset ||\r
            HMainEditor.BufferImage->MemImage->Size != HBufferImageBackupVar.MemImage->Size) ){\r
       NameChange = TRUE;\r
     }\r
   } else if (HMainEditor.BufferImage->BufferType == FileTypeFileBuffer) {\r
-    if ( HMainEditor.BufferImage->FileImage != NULL && \r
-         HMainEditor.BufferImage->FileImage->FileName != NULL && \r
-         HBufferImageBackupVar.FileImage != NULL && \r
-         HBufferImageBackupVar.FileImage->FileName != NULL && \r
+    if ( HMainEditor.BufferImage->FileImage != NULL &&\r
+         HMainEditor.BufferImage->FileImage->FileName != NULL &&\r
+         HBufferImageBackupVar.FileImage != NULL &&\r
+         HBufferImageBackupVar.FileImage->FileName != NULL &&\r
          StrCmp (HMainEditor.BufferImage->FileImage->FileName, HBufferImageBackupVar.FileImage->FileName) != 0 ) {\r
       NameChange = TRUE;\r
     }\r
   }\r
-  if ( HMainEditor.BufferImage->FileImage != NULL && \r
-       HBufferImageBackupVar.FileImage != NULL && \r
+  if ( HMainEditor.BufferImage->FileImage != NULL &&\r
+       HBufferImageBackupVar.FileImage != NULL &&\r
        HMainEditor.BufferImage->FileImage->ReadOnly != HBufferImageBackupVar.FileImage->ReadOnly ) {\r
     ReadChange = TRUE;\r
   }\r
@@ -1885,10 +1885,10 @@ HMainEditorRefresh (
   //\r
   // call the components refresh function\r
   //\r
-  if (HEditorFirst \r
+  if (HEditorFirst\r
     || NameChange\r
-    || HMainEditor.BufferImage->BufferType != HBufferImageBackupVar.BufferType \r
-    || HBufferImageBackupVar.Modified != HMainEditor.BufferImage->Modified \r
+    || HMainEditor.BufferImage->BufferType != HBufferImageBackupVar.BufferType\r
+    || HBufferImageBackupVar.Modified != HMainEditor.BufferImage->Modified\r
     || ReadChange ) {\r
 \r
     MainTitleBarRefresh (\r
@@ -1904,8 +1904,8 @@ HMainEditorRefresh (
     HBufferImageRefresh ();\r
   }\r
   if (HEditorFirst\r
-    || HBufferImageBackupVar.DisplayPosition.Row != HMainEditor.BufferImage->DisplayPosition.Row \r
-    || HBufferImageBackupVar.DisplayPosition.Column != HMainEditor.BufferImage->DisplayPosition.Column \r
+    || HBufferImageBackupVar.DisplayPosition.Row != HMainEditor.BufferImage->DisplayPosition.Row\r
+    || HBufferImageBackupVar.DisplayPosition.Column != HMainEditor.BufferImage->DisplayPosition.Column\r
     || StatusBarGetRefresh()) {\r
 \r
     StatusBarRefresh (\r
@@ -2334,7 +2334,7 @@ HMainEditorKeyInput (
           case FileTypeMemBuffer:\r
             OldSize = HBufferImage.MemImage->Size;\r
             break;\r
-        \r
+\r
           default:\r
             OldSize = 0;\r
             break;\r
index 0c2ffe9053d22a9022346fb0641ec5c916823378..8d9c007d9440f62cda33b02b1ed93d3385f92d92 100644 (file)
@@ -1,10 +1,10 @@
 /** @file\r
-    Defines the Main Editor data type - \r
-     - Global variables \r
+    Defines the Main Editor data type -\r
+     - Global variables\r
      - Instances of the other objects of the editor\r
      - Main Interfaces\r
-  \r
-  Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
+\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
index 12f1492583f42e124daaa7def4c34bbd87aa96c2..4fdd9ab95c544fd8601125bd9347c1a694076b3e 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Functions to deal with Mem buffer\r
-  \r
-  Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved. <BR>\r
+\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -67,7 +67,7 @@ HMemImageInit (
 }\r
 \r
 /**\r
-  Backup function for HDiskImage. Only a few fields need to be backup. \r
+  Backup function for HDiskImage. Only a few fields need to be backup.\r
   This is for making the Disk buffer refresh as few as possible.\r
 \r
   @retval EFI_SUCCESS       The operation was successful.\r
index 54fe517858d96710d0ab657f014666e5d79f4c23..41ff773d469fa97fbc01091ddcb8631c979335b4 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
-  Defines MemImage - the view of the file that is visible at any point, \r
+  Defines MemImage - the view of the file that is visible at any point,\r
   as well as the event handlers for editing the file\r
-  \r
-  Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
+\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -30,7 +30,7 @@ HMemImageInit (
   );\r
 \r
 /**\r
-  Backup function for HDiskImage. Only a few fields need to be backup. \r
+  Backup function for HDiskImage. Only a few fields need to be backup.\r
   This is for making the Disk buffer refresh as few as possible.\r
 \r
   @retval EFI_SUCCESS       The operation was successful.\r
index c3ed341936658b85e63cea572145c49521c37aed..cf768c318114e70311ad9568d69ee24ecb2d255e 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Implementation of various string and line routines\r
-  \r
-  Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
+\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -18,7 +18,7 @@ extern BOOLEAN  HEditorMouseAction;
 \r
 /**\r
   Free a line and it's internal buffer.\r
-  \r
+\r
   @param[in] Src    The line to be freed.\r
 **/\r
 VOID\r
@@ -109,7 +109,7 @@ HLineRetreat (
 \r
   @param[in] Count      The line number to advance/retreat.\r
                             >0 : advance\r
-                            <0: retreat  \r
+                            <0: retreat\r
 \r
   @retval NULL An error occured.\r
   @return A pointer to the line after move.\r
@@ -182,7 +182,7 @@ HMoveCurrentLine (
     Lines\r
     CurrentLine\r
     NumLines\r
-    ListHead \r
+    ListHead\r
 \r
   @param[in] ListHead     The list head.\r
   @param[in] Lines        The lines.\r
index df947935b001f39569481600bdedad5dfd900243..f95de3d95f9eb6e870aa951f2045fd2d4cbe6c16 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
     Definitions for various line and string routines\r
 \r
-  Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -22,7 +22,7 @@
 \r
   @param[in] Count      The line number to advance/retreat.\r
                             >0 : advance\r
-                            <0: retreat  \r
+                            <0: retreat\r
 \r
   @retval NULL An error occured.\r
   @return A pointer to the line after move.\r
@@ -53,7 +53,7 @@ HMoveCurrentLine (
     Lines\r
     CurrentLine\r
     NumLines\r
-    ListHead \r
+    ListHead\r
 \r
   @param[in] ListHead     The list head.\r
   @param[in] Lines        The lines.\r
index 7be658dc879e7a74d82d1d0a643a9eb9fe5c4ecc..6cd52e09c81be7233074b99ff5ff936c14d49d00 100644 (file)
@@ -2,7 +2,7 @@
   Main file for LoadPciRom shell Debug1 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -93,7 +93,7 @@ ShellCommandRunLoadPciRom (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"loadpcirom", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"loadpcirom", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -101,7 +101,7 @@ ShellCommandRunLoadPciRom (
     }\r
   } else {\r
     if (ShellCommandLineGetCount(Package) < 2) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"loadpcirom");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"loadpcirom");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       if (ShellCommandLineGetFlag(Package, L"-nc")) {\r
@@ -120,7 +120,7 @@ ShellCommandRunLoadPciRom (
          ){\r
         Status = ShellOpenFileMetaArg((CHAR16*)Param, EFI_FILE_MODE_WRITE|EFI_FILE_MODE_READ, &FileList);\r
         if (EFI_ERROR(Status)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"loadpcirom", Param);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"loadpcirom", Param);\r
           ShellStatus = SHELL_ACCESS_DENIED;\r
           break;\r
         }\r
@@ -134,12 +134,12 @@ ShellCommandRunLoadPciRom (
             ; Node = (EFI_SHELL_FILE_INFO*)GetNextNode(&FileList->Link, &Node->Link)\r
            ){\r
           if (EFI_ERROR(Node->Status)){\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"loadpcirom", Node->FullName);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"loadpcirom", Node->FullName);\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
             continue;\r
           }\r
           if (FileHandleIsDirectory(Node->Handle) == EFI_SUCCESS) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_NOT_DIR), gShellDebug1HiiHandle, L"loadpcirom", Node->FullName);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_NOT_DIR), gShellDebug1HiiHandle, L"loadpcirom", Node->FullName);\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
             continue;\r
           }\r
@@ -152,7 +152,7 @@ ShellCommandRunLoadPciRom (
           }\r
           Status = gEfiShellProtocol->ReadFile(Node->Handle, &SourceSize, File1Buffer);\r
           if (EFI_ERROR(Status)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_READ_FAIL), gShellDebug1HiiHandle, L"loadpcirom", Node->FullName);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_READ_FAIL), gShellDebug1HiiHandle, L"loadpcirom", Node->FullName);\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           } else {\r
             Status = LoadEfiDriversFromRomImage (\r
@@ -166,7 +166,7 @@ ShellCommandRunLoadPciRom (
           FreePool(File1Buffer);\r
         }\r
       } else if (ShellStatus == SHELL_SUCCESS) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_NOT_SPEC), gShellDebug1HiiHandle, "loadpcirom");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_NOT_SPEC), gShellDebug1HiiHandle, "loadpcirom");\r
         ShellStatus = SHELL_NOT_FOUND;\r
       }\r
       if (FileList != NULL && !IsListEmpty(&FileList->Link)) {\r
@@ -234,14 +234,14 @@ LoadEfiDriversFromRomImage (
     EfiRomHeader = (EFI_PCI_EXPANSION_ROM_HEADER *) (UINTN) RomBarOffset;\r
 \r
     if (EfiRomHeader->Signature != PCI_EXPANSION_ROM_HEADER_SIGNATURE) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_LOADPCIROM_CORRUPT), gShellDebug1HiiHandle, L"loadpcirom", FileName, ImageIndex);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_LOADPCIROM_CORRUPT), gShellDebug1HiiHandle, L"loadpcirom", FileName, ImageIndex);\r
 //      PrintToken (STRING_TOKEN (STR_LOADPCIROM_IMAGE_CORRUPT), HiiHandle, ImageIndex);\r
       return ReturnStatus;\r
     }\r
 \r
     //\r
-    // If the pointer to the PCI Data Structure is invalid, no further images can be located. \r
-    // The PCI Data Structure must be DWORD aligned. \r
+    // If the pointer to the PCI Data Structure is invalid, no further images can be located.\r
+    // The PCI Data Structure must be DWORD aligned.\r
     //\r
     if (EfiRomHeader->PcirOffset == 0 ||\r
         (EfiRomHeader->PcirOffset & 3) != 0 ||\r
@@ -340,12 +340,12 @@ LoadEfiDriversFromRomImage (
                         &ImageHandle\r
                        );\r
           if (EFI_ERROR (Status)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_LOADPCIROM_LOAD_FAIL), gShellDebug1HiiHandle, L"loadpcirom", FileName, ImageIndex);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_LOADPCIROM_LOAD_FAIL), gShellDebug1HiiHandle, L"loadpcirom", FileName, ImageIndex);\r
 //            PrintToken (STRING_TOKEN (STR_LOADPCIROM_LOAD_IMAGE_ERROR), HiiHandle, ImageIndex, Status);\r
           } else {\r
             Status = gBS->StartImage (ImageHandle, NULL, NULL);\r
             if (EFI_ERROR (Status)) {\r
-              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_LOADPCIROM_START_FAIL), gShellDebug1HiiHandle, L"loadpcirom", FileName, ImageIndex);  \r
+              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_LOADPCIROM_START_FAIL), gShellDebug1HiiHandle, L"loadpcirom", FileName, ImageIndex);\r
 //              PrintToken (STRING_TOKEN (STR_LOADPCIROM_START_IMAGE), HiiHandle, ImageIndex, Status);\r
             } else {\r
               ReturnStatus = Status;\r
index c856661917aedd1e1f551f6903a0a6e6678c0d44..7389e14edfe5e3cf6adc846657ee029d27cc16bc 100644 (file)
@@ -3,7 +3,7 @@
 \r
   (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
   (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which acModeanies this distribution.  The full text of the license may be found at\r
@@ -200,7 +200,7 @@ ShellCommandRunMemMap (
   Status = ShellCommandLineParse (SfoParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"memmap", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"memmap", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -208,7 +208,7 @@ ShellCommandRunMemMap (
     }\r
   } else {\r
     if (ShellCommandLineGetCount(Package) > 1) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"memmap");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"memmap");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       Status = gBS->GetMemoryMap(&Size, Descriptors, &MapKey, &ItemSize, &Version);\r
@@ -218,7 +218,7 @@ ShellCommandRunMemMap (
         Status = gBS->GetMemoryMap(&Size, Descriptors, &MapKey, &ItemSize, &Version);\r
       }\r
       if (EFI_ERROR(Status)) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_MEMMAP_GET_FAILED), gShellDebug1HiiHandle, L"memmap");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_MEMMAP_GET_FAILED), gShellDebug1HiiHandle, L"memmap");\r
         ShellStatus = SHELL_ACCESS_DENIED;\r
       } else {\r
         ASSERT(Version == EFI_MEMORY_DESCRIPTOR_VERSION);\r
index 7696e3fbbd2a00ee10227740d69fb26536d9ac43..c0e0d710bad5a0799e58a3d1e123777ce75c8526 100644 (file)
@@ -2,7 +2,7 @@
   Main file for Mode shell Debug1 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which acModeanies this distribution.  The full text of the license may be found at\r
@@ -58,7 +58,7 @@ ShellCommandRunMode (
   Status = ShellCommandLineParse (EmptyParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"mode", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"mode", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -66,21 +66,21 @@ ShellCommandRunMode (
     }\r
   } else {\r
     if (ShellCommandLineGetCount(Package) > 3) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"mode");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"mode");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (ShellCommandLineGetCount(Package) == 2) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"mode");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"mode");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (ShellCommandLineGetCount(Package) == 3) {\r
       Temp = ShellCommandLineGetRawValue(Package, 1);\r
       if (!ShellIsHexOrDecimalNumber(Temp, FALSE, FALSE)) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"mode", Temp);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"mode", Temp);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       }\r
       NewCol = ShellStrToUintn(Temp);\r
       Temp = ShellCommandLineGetRawValue(Package, 2);\r
       if (!ShellIsHexOrDecimalNumber(Temp, FALSE, FALSE)) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"mode", Temp);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"mode", Temp);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       }\r
       NewRow = ShellStrToUintn(Temp);\r
@@ -93,7 +93,7 @@ ShellCommandRunMode (
         if (Col == NewCol && Row == NewRow) {\r
           Status = gST->ConOut->SetMode(gST->ConOut, LoopVar);\r
           if (EFI_ERROR(Status)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_MODE_SET_FAIL), gShellDebug1HiiHandle, L"mode");  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_MODE_SET_FAIL), gShellDebug1HiiHandle, L"mode");\r
             ShellStatus = SHELL_DEVICE_ERROR;\r
           } else {\r
             // worked fine...\r
@@ -104,7 +104,7 @@ ShellCommandRunMode (
       }\r
 \r
       if (!Done) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_MODE_NO_MATCH), gShellDebug1HiiHandle, L"mode");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_MODE_NO_MATCH), gShellDebug1HiiHandle, L"mode");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       }\r
 \r
index 38559571c2309e33139cd7ae14a82ba9d8364854..b6c6e6509c5178a5c69f517cb21728e70707f4c9 100644 (file)
@@ -1,9 +1,9 @@
 /** @file\r
   Main file for Pci shell Debug1 function.\r
 \r
-  Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
   (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>  \r
+  (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
   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
@@ -2487,7 +2487,7 @@ ShellCommandRunPci (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"pci", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"pci", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -2496,23 +2496,23 @@ ShellCommandRunPci (
   } else {\r
 \r
     if (ShellCommandLineGetCount(Package) == 2) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"pci");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"pci");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
       goto Done;\r
     }\r
 \r
     if (ShellCommandLineGetCount(Package) > 4) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"pci");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"pci");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
       goto Done;\r
     }\r
     if (ShellCommandLineGetFlag(Package, L"-ec") && ShellCommandLineGetValue(Package, L"-ec") == NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDebug1HiiHandle,  L"pci", L"-ec");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDebug1HiiHandle,  L"pci", L"-ec");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
       goto Done;\r
     }\r
     if (ShellCommandLineGetFlag(Package, L"-s") && ShellCommandLineGetValue(Package, L"-s") == NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDebug1HiiHandle,  L"pci", L"-s");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDebug1HiiHandle,  L"pci", L"-s");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
       goto Done;\r
     }\r
@@ -2524,7 +2524,7 @@ ShellCommandRunPci (
     HandleBufSize = sizeof (EFI_HANDLE);\r
     HandleBuf     = (EFI_HANDLE *) AllocateZeroPool (HandleBufSize);\r
     if (HandleBuf == NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_OUT_MEM), gShellDebug1HiiHandle, L"pci");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_OUT_MEM), gShellDebug1HiiHandle, L"pci");\r
       ShellStatus = SHELL_OUT_OF_RESOURCES;\r
       goto Done;\r
     }\r
@@ -2540,7 +2540,7 @@ ShellCommandRunPci (
     if (Status == EFI_BUFFER_TOO_SMALL) {\r
       HandleBuf = ReallocatePool (sizeof (EFI_HANDLE), HandleBufSize, HandleBuf);\r
       if (HandleBuf == NULL) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_OUT_MEM), gShellDebug1HiiHandle, L"pci");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_OUT_MEM), gShellDebug1HiiHandle, L"pci");\r
         ShellStatus = SHELL_OUT_OF_RESOURCES;\r
         goto Done;\r
       }\r
@@ -2555,7 +2555,7 @@ ShellCommandRunPci (
     }\r
 \r
     if (EFI_ERROR (Status)) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PCIRBIO_NF), gShellDebug1HiiHandle, L"pci");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PCIRBIO_NF), gShellDebug1HiiHandle, L"pci");\r
       ShellStatus = SHELL_NOT_FOUND;\r
       goto Done;\r
     }\r
@@ -2591,7 +2591,7 @@ ShellCommandRunPci (
                   &Descriptors\r
                  );\r
         if (EFI_ERROR (Status)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_PCI_HANDLE_CFG_ERR), gShellDebug1HiiHandle, L"pci");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_PCI_HANDLE_CFG_ERR), gShellDebug1HiiHandle, L"pci");\r
           ShellStatus = SHELL_NOT_FOUND;\r
           goto Done;\r
         }\r
@@ -2604,7 +2604,7 @@ ShellCommandRunPci (
           Status = PciGetNextBusRange (&Descriptors, &MinBus, &MaxBus, &IsEnd);\r
 \r
           if (EFI_ERROR (Status)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_PCI_BUS_RANGE_ERR), gShellDebug1HiiHandle, L"pci");  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_PCI_BUS_RANGE_ERR), gShellDebug1HiiHandle, L"pci");\r
             ShellStatus = SHELL_NOT_FOUND;\r
             goto Done;\r
           }\r
@@ -2729,7 +2729,7 @@ ShellCommandRunPci (
       if (!EFI_ERROR (ShellConvertStringToUint64 (Temp, &RetVal, TRUE, TRUE))) {\r
         Segment = (UINT16) RetVal;\r
       } else {\r
-        ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV_HEX), gShellDebug1HiiHandle, L"pci", Temp);  \r
+        ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV_HEX), gShellDebug1HiiHandle, L"pci", Temp);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         goto Done;\r
       }\r
@@ -2747,13 +2747,13 @@ ShellCommandRunPci (
       if (!EFI_ERROR (ShellConvertStringToUint64 (Temp, &RetVal, TRUE, TRUE))) {\r
         Bus = (UINT16) RetVal;\r
       } else {\r
-        ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV_HEX), gShellDebug1HiiHandle, L"pci", Temp);  \r
+        ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV_HEX), gShellDebug1HiiHandle, L"pci", Temp);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         goto Done;\r
       }\r
 \r
       if (Bus > PCI_MAX_BUS) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"pci", Temp);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"pci", Temp);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         goto Done;\r
       }\r
@@ -2766,13 +2766,13 @@ ShellCommandRunPci (
       if (!EFI_ERROR (ShellConvertStringToUint64 (Temp, &RetVal, TRUE, TRUE))) {\r
         Device = (UINT16) RetVal;\r
       } else {\r
-        ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV_HEX), gShellDebug1HiiHandle, L"pci", Temp);  \r
+        ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV_HEX), gShellDebug1HiiHandle, L"pci", Temp);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         goto Done;\r
       }\r
 \r
       if (Device > PCI_MAX_DEVICE){\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"pci", Temp);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"pci", Temp);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         goto Done;\r
       }\r
@@ -2786,13 +2786,13 @@ ShellCommandRunPci (
       if (!EFI_ERROR (ShellConvertStringToUint64 (Temp, &RetVal, TRUE, TRUE))) {\r
         Func = (UINT16) RetVal;\r
       } else {\r
-        ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV_HEX), gShellDebug1HiiHandle, L"pci", Temp);  \r
+        ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV_HEX), gShellDebug1HiiHandle, L"pci", Temp);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         goto Done;\r
       }\r
 \r
       if (Func > PCI_MAX_FUNC){\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"pci", Temp);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"pci", Temp);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         goto Done;\r
       }\r
@@ -2806,7 +2806,7 @@ ShellCommandRunPci (
       if (!EFI_ERROR (ShellConvertStringToUint64 (Temp, &RetVal, TRUE, TRUE))) {\r
         ExtendedCapability = (UINT16) RetVal;\r
       } else {\r
-        ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV_HEX), gShellDebug1HiiHandle, L"pci", Temp);  \r
+        ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV_HEX), gShellDebug1HiiHandle, L"pci", Temp);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         goto Done;\r
       }\r
@@ -2826,7 +2826,7 @@ ShellCommandRunPci (
 \r
     if (EFI_ERROR (Status)) {\r
       ShellPrintHiiEx(\r
-        -1, -1, NULL, STRING_TOKEN (STR_PCI_NO_FIND), gShellDebug1HiiHandle, L"pci",  \r
+        -1, -1, NULL, STRING_TOKEN (STR_PCI_NO_FIND), gShellDebug1HiiHandle, L"pci",\r
         Segment,\r
         Bus\r
        );\r
@@ -2844,7 +2844,7 @@ ShellCommandRunPci (
                          );\r
 \r
     if (EFI_ERROR (Status)) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_PCI_NO_CFG), gShellDebug1HiiHandle, L"pci");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_PCI_NO_CFG), gShellDebug1HiiHandle, L"pci");\r
       ShellStatus = SHELL_ACCESS_DENIED;\r
       goto Done;\r
     }\r
@@ -4999,13 +4999,13 @@ PrintInterpretedExtendedCompatibilityLinkControl (
   Header = (PCI_EXPRESS_EXTENDED_CAPABILITIES_INTERNAL_LINK_CONTROL*)HeaderAddress;\r
 \r
   ShellPrintHiiEx(\r
-    -1, -1, NULL, \r
-    STRING_TOKEN (STR_PCI_EXT_CAP_LINK_CONTROL), \r
-    gShellDebug1HiiHandle, \r
+    -1, -1, NULL,\r
+    STRING_TOKEN (STR_PCI_EXT_CAP_LINK_CONTROL),\r
+    gShellDebug1HiiHandle,\r
     Header->RootComplexLinkCapabilities,\r
     Header->RootComplexLinkControl,\r
     Header->RootComplexLinkStatus\r
-    ); \r
+    );\r
   DumpHex (\r
     4,\r
     EFI_PCIE_CAPABILITY_BASE_OFFSET + ((UINT8*)HeaderAddress - (UINT8*)HeadersBaseAddress),\r
@@ -5031,13 +5031,13 @@ PrintInterpretedExtendedCompatibilityPowerBudgeting (
   Header = (PCI_EXPRESS_EXTENDED_CAPABILITIES_POWER_BUDGETING*)HeaderAddress;\r
 \r
   ShellPrintHiiEx(\r
-    -1, -1, NULL, \r
-    STRING_TOKEN (STR_PCI_EXT_CAP_POWER), \r
-    gShellDebug1HiiHandle, \r
+    -1, -1, NULL,\r
+    STRING_TOKEN (STR_PCI_EXT_CAP_POWER),\r
+    gShellDebug1HiiHandle,\r
     Header->DataSelect,\r
     Header->Data,\r
     Header->PowerBudgetCapability\r
-    ); \r
+    );\r
   DumpHex (\r
     4,\r
     EFI_PCIE_CAPABILITY_BASE_OFFSET + ((UINT8*)HeaderAddress - (UINT8*)HeadersBaseAddress),\r
@@ -5067,12 +5067,12 @@ PrintInterpretedExtendedCompatibilityAcs (
   VectorSize  = 0;\r
 \r
   ShellPrintHiiEx(\r
-    -1, -1, NULL, \r
-    STRING_TOKEN (STR_PCI_EXT_CAP_ACS), \r
-    gShellDebug1HiiHandle, \r
+    -1, -1, NULL,\r
+    STRING_TOKEN (STR_PCI_EXT_CAP_ACS),\r
+    gShellDebug1HiiHandle,\r
     Header->AcsCapability,\r
     Header->AcsControl\r
-    ); \r
+    );\r
   if (PCI_EXPRESS_EXTENDED_CAPABILITY_ACS_EXTENDED_GET_EGRES_CONTROL(Header)) {\r
     VectorSize = PCI_EXPRESS_EXTENDED_CAPABILITY_ACS_EXTENDED_GET_EGRES_VECTOR_SIZE(Header);\r
     if (VectorSize == 0) {\r
@@ -5080,12 +5080,12 @@ PrintInterpretedExtendedCompatibilityAcs (
     }\r
     for (LoopCounter = 0 ; LoopCounter * 8 < VectorSize ; LoopCounter++) {\r
       ShellPrintHiiEx(\r
-        -1, -1, NULL, \r
-        STRING_TOKEN (STR_PCI_EXT_CAP_ACS2), \r
-        gShellDebug1HiiHandle, \r
+        -1, -1, NULL,\r
+        STRING_TOKEN (STR_PCI_EXT_CAP_ACS2),\r
+        gShellDebug1HiiHandle,\r
         LoopCounter + 1,\r
         Header->EgressControlVectorArray[LoopCounter]\r
-        ); \r
+        );\r
     }\r
   }\r
   DumpHex (\r
@@ -5113,12 +5113,12 @@ PrintInterpretedExtendedCompatibilityLatencyToleranceReporting (
   Header = (PCI_EXPRESS_EXTENDED_CAPABILITIES_LATENCE_TOLERANCE_REPORTING*)HeaderAddress;\r
 \r
   ShellPrintHiiEx(\r
-    -1, -1, NULL, \r
-    STRING_TOKEN (STR_PCI_EXT_CAP_LAT), \r
-    gShellDebug1HiiHandle, \r
+    -1, -1, NULL,\r
+    STRING_TOKEN (STR_PCI_EXT_CAP_LAT),\r
+    gShellDebug1HiiHandle,\r
     Header->MaxSnoopLatency,\r
     Header->MaxNoSnoopLatency\r
-    ); \r
+    );\r
   DumpHex (\r
     4,\r
     EFI_PCIE_CAPABILITY_BASE_OFFSET + ((UINT8*)HeaderAddress - (UINT8*)HeadersBaseAddress),\r
@@ -5144,11 +5144,11 @@ PrintInterpretedExtendedCompatibilitySerialNumber (
   Header = (PCI_EXPRESS_EXTENDED_CAPABILITIES_SERIAL_NUMBER*)HeaderAddress;\r
 \r
   ShellPrintHiiEx(\r
-    -1, -1, NULL, \r
-    STRING_TOKEN (STR_PCI_EXT_CAP_SN), \r
-    gShellDebug1HiiHandle, \r
+    -1, -1, NULL,\r
+    STRING_TOKEN (STR_PCI_EXT_CAP_SN),\r
+    gShellDebug1HiiHandle,\r
     Header->SerialNumber\r
-    ); \r
+    );\r
   DumpHex (\r
     4,\r
     EFI_PCIE_CAPABILITY_BASE_OFFSET + ((UINT8*)HeaderAddress - (UINT8*)HeadersBaseAddress),\r
@@ -5174,14 +5174,14 @@ PrintInterpretedExtendedCompatibilityRcrb (
   Header = (PCI_EXPRESS_EXTENDED_CAPABILITIES_RCRB_HEADER*)HeaderAddress;\r
 \r
   ShellPrintHiiEx(\r
-    -1, -1, NULL, \r
-    STRING_TOKEN (STR_PCI_EXT_CAP_RCRB), \r
-    gShellDebug1HiiHandle, \r
+    -1, -1, NULL,\r
+    STRING_TOKEN (STR_PCI_EXT_CAP_RCRB),\r
+    gShellDebug1HiiHandle,\r
     Header->VendorId,\r
     Header->DeviceId,\r
     Header->RcrbCapabilities,\r
     Header->RcrbControl\r
-    ); \r
+    );\r
   DumpHex (\r
     4,\r
     EFI_PCIE_CAPABILITY_BASE_OFFSET + ((UINT8*)HeaderAddress - (UINT8*)HeadersBaseAddress),\r
@@ -5207,11 +5207,11 @@ PrintInterpretedExtendedCompatibilityVendorSpecific (
   Header = (PCI_EXPRESS_EXTENDED_CAPABILITIES_VENDOR_SPECIFIC*)HeaderAddress;\r
 \r
   ShellPrintHiiEx(\r
-    -1, -1, NULL, \r
-    STRING_TOKEN (STR_PCI_EXT_CAP_VEN), \r
-    gShellDebug1HiiHandle, \r
+    -1, -1, NULL,\r
+    STRING_TOKEN (STR_PCI_EXT_CAP_VEN),\r
+    gShellDebug1HiiHandle,\r
     Header->VendorSpecificHeader\r
-    ); \r
+    );\r
   DumpHex (\r
     4,\r
     EFI_PCIE_CAPABILITY_BASE_OFFSET + ((UINT8*)HeaderAddress - (UINT8*)HeadersBaseAddress),\r
@@ -5237,11 +5237,11 @@ PrintInterpretedExtendedCompatibilityECEA (
   Header = (PCI_EXPRESS_EXTENDED_CAPABILITIES_EVENT_COLLECTOR_ENDPOINT_ASSOCIATION*)HeaderAddress;\r
 \r
   ShellPrintHiiEx(\r
-    -1, -1, NULL, \r
-    STRING_TOKEN (STR_PCI_EXT_CAP_ECEA), \r
-    gShellDebug1HiiHandle, \r
+    -1, -1, NULL,\r
+    STRING_TOKEN (STR_PCI_EXT_CAP_ECEA),\r
+    gShellDebug1HiiHandle,\r
     Header->AssociationBitmap\r
-    ); \r
+    );\r
   DumpHex (\r
     4,\r
     EFI_PCIE_CAPABILITY_BASE_OFFSET + ((UINT8*)HeaderAddress - (UINT8*)HeadersBaseAddress),\r
@@ -5267,12 +5267,12 @@ PrintInterpretedExtendedCompatibilityAri (
   Header = (PCI_EXPRESS_EXTENDED_CAPABILITIES_ARI_CAPABILITY*)HeaderAddress;\r
 \r
   ShellPrintHiiEx(\r
-    -1, -1, NULL, \r
-    STRING_TOKEN (STR_PCI_EXT_CAP_ARI), \r
-    gShellDebug1HiiHandle, \r
+    -1, -1, NULL,\r
+    STRING_TOKEN (STR_PCI_EXT_CAP_ARI),\r
+    gShellDebug1HiiHandle,\r
     Header->AriCapability,\r
     Header->AriControl\r
-    ); \r
+    );\r
   DumpHex (\r
     4,\r
     EFI_PCIE_CAPABILITY_BASE_OFFSET + ((UINT8*)HeaderAddress - (UINT8*)HeadersBaseAddress),\r
@@ -5299,19 +5299,19 @@ PrintInterpretedExtendedCompatibilityDynamicPowerAllocation (
   Header = (PCI_EXPRESS_EXTENDED_CAPABILITIES_DYNAMIC_POWER_ALLOCATION*)HeaderAddress;\r
 \r
   ShellPrintHiiEx(\r
-    -1, -1, NULL, \r
-    STRING_TOKEN (STR_PCI_EXT_CAP_DPA), \r
-    gShellDebug1HiiHandle, \r
+    -1, -1, NULL,\r
+    STRING_TOKEN (STR_PCI_EXT_CAP_DPA),\r
+    gShellDebug1HiiHandle,\r
     Header->DpaCapability,\r
     Header->DpaLatencyIndicator,\r
     Header->DpaStatus,\r
     Header->DpaControl\r
-    ); \r
+    );\r
   for (LinkCount = 0 ; LinkCount < PCI_EXPRESS_EXTENDED_CAPABILITY_DYNAMIC_POWER_ALLOCATION_GET_SUBSTATE_MAX(Header) + 1 ; LinkCount++) {\r
     ShellPrintHiiEx(\r
-      -1, -1, NULL, \r
-      STRING_TOKEN (STR_PCI_EXT_CAP_DPA2), \r
-      gShellDebug1HiiHandle, \r
+      -1, -1, NULL,\r
+      STRING_TOKEN (STR_PCI_EXT_CAP_DPA2),\r
+      gShellDebug1HiiHandle,\r
       LinkCount+1,\r
       Header->DpaPowerAllocationArray[LinkCount]\r
       );\r
@@ -5342,17 +5342,17 @@ PrintInterpretedExtendedCompatibilityLinkDeclaration (
   Header = (PCI_EXPRESS_EXTENDED_CAPABILITIES_LINK_DECLARATION*)HeaderAddress;\r
 \r
   ShellPrintHiiEx(\r
-    -1, -1, NULL, \r
-    STRING_TOKEN (STR_PCI_EXT_CAP_LINK_DECLAR), \r
-    gShellDebug1HiiHandle, \r
+    -1, -1, NULL,\r
+    STRING_TOKEN (STR_PCI_EXT_CAP_LINK_DECLAR),\r
+    gShellDebug1HiiHandle,\r
     Header->ElementSelfDescription\r
     );\r
 \r
   for (LinkCount = 0 ; LinkCount < PCI_EXPRESS_EXTENDED_CAPABILITY_LINK_DECLARATION_GET_LINK_COUNT(Header) ; LinkCount++) {\r
     ShellPrintHiiEx(\r
-      -1, -1, NULL, \r
-      STRING_TOKEN (STR_PCI_EXT_CAP_LINK_DECLAR2), \r
-      gShellDebug1HiiHandle, \r
+      -1, -1, NULL,\r
+      STRING_TOKEN (STR_PCI_EXT_CAP_LINK_DECLAR2),\r
+      gShellDebug1HiiHandle,\r
       LinkCount+1,\r
       Header->LinkEntry[LinkCount]\r
       );\r
@@ -5382,9 +5382,9 @@ PrintInterpretedExtendedCompatibilityAer (
   Header = (PCI_EXPRESS_EXTENDED_CAPABILITIES_ADVANCED_ERROR_REPORTING*)HeaderAddress;\r
 \r
   ShellPrintHiiEx(\r
-    -1, -1, NULL, \r
-    STRING_TOKEN (STR_PCI_EXT_CAP_AER), \r
-    gShellDebug1HiiHandle, \r
+    -1, -1, NULL,\r
+    STRING_TOKEN (STR_PCI_EXT_CAP_AER),\r
+    gShellDebug1HiiHandle,\r
     Header->UncorrectableErrorStatus,\r
     Header->UncorrectableErrorMask,\r
     Header->UncorrectableErrorSeverity,\r
@@ -5431,9 +5431,9 @@ PrintInterpretedExtendedCompatibilityMulticast (
   Header = (PCI_EXPRESS_EXTENDED_CAPABILITIES_MULTICAST*)HeaderAddress;\r
 \r
   ShellPrintHiiEx(\r
-    -1, -1, NULL, \r
-    STRING_TOKEN (STR_PCI_EXT_CAP_MULTICAST), \r
-    gShellDebug1HiiHandle, \r
+    -1, -1, NULL,\r
+    STRING_TOKEN (STR_PCI_EXT_CAP_MULTICAST),\r
+    gShellDebug1HiiHandle,\r
     Header->MultiCastCapability,\r
     Header->MulticastControl,\r
     Header->McBaseAddress,\r
@@ -5471,9 +5471,9 @@ PrintInterpretedExtendedCompatibilityVirtualChannel (
   Header = (PCI_EXPRESS_EXTENDED_CAPABILITIES_VIRTUAL_CHANNEL_CAPABILITY*)HeaderAddress;\r
 \r
   ShellPrintHiiEx(\r
-    -1, -1, NULL, \r
-    STRING_TOKEN (STR_PCI_EXT_CAP_VC_BASE), \r
-    gShellDebug1HiiHandle, \r
+    -1, -1, NULL,\r
+    STRING_TOKEN (STR_PCI_EXT_CAP_VC_BASE),\r
+    gShellDebug1HiiHandle,\r
     Header->ExtendedVcCount,\r
     Header->PortVcCapability1,\r
     Header->PortVcCapability2,\r
@@ -5484,9 +5484,9 @@ PrintInterpretedExtendedCompatibilityVirtualChannel (
   for (ItemCount = 0 ; ItemCount < Header->ExtendedVcCount ; ItemCount++) {\r
     CapabilityItem = &Header->Capability[ItemCount];\r
     ShellPrintHiiEx(\r
-      -1, -1, NULL, \r
-      STRING_TOKEN (STR_PCI_EXT_CAP_VC_ITEM), \r
-      gShellDebug1HiiHandle, \r
+      -1, -1, NULL,\r
+      STRING_TOKEN (STR_PCI_EXT_CAP_VC_ITEM),\r
+      gShellDebug1HiiHandle,\r
       ItemCount+1,\r
       CapabilityItem->VcResourceCapability,\r
       CapabilityItem->PortArbTableOffset,\r
@@ -5524,9 +5524,9 @@ PrintInterpretedExtendedCompatibilityResizeableBar (
 \r
   for (ItemCount = 0 ; ItemCount < (UINT32)GET_NUMBER_RESIZABLE_BARS(Header) ; ItemCount++) {\r
     ShellPrintHiiEx(\r
-      -1, -1, NULL, \r
-      STRING_TOKEN (STR_PCI_EXT_CAP_RESIZE_BAR), \r
-      gShellDebug1HiiHandle, \r
+      -1, -1, NULL,\r
+      STRING_TOKEN (STR_PCI_EXT_CAP_RESIZE_BAR),\r
+      gShellDebug1HiiHandle,\r
       ItemCount+1,\r
       Header->Capability[ItemCount].ResizableBarCapability,\r
       Header->Capability[ItemCount].ResizableBarControl\r
@@ -5559,9 +5559,9 @@ PrintInterpretedExtendedCompatibilityTph (
   Header = (PCI_EXPRESS_EXTENDED_CAPABILITIES_TPH*)HeaderAddress;\r
 \r
   ShellPrintHiiEx(\r
-    -1, -1, NULL, \r
-    STRING_TOKEN (STR_PCI_EXT_CAP_TPH), \r
-    gShellDebug1HiiHandle, \r
+    -1, -1, NULL,\r
+    STRING_TOKEN (STR_PCI_EXT_CAP_TPH),\r
+    gShellDebug1HiiHandle,\r
     Header->TphRequesterCapability,\r
     Header->TphRequesterControl\r
     );\r
@@ -5600,9 +5600,9 @@ PrintInterpretedExtendedCompatibilitySecondary (
   Header = (PCI_EXPRESS_EXTENDED_CAPABILITIES_SECONDARY_PCIE*)HeaderAddress;\r
 \r
   ShellPrintHiiEx(\r
-    -1, -1, NULL, \r
-    STRING_TOKEN (STR_PCI_EXT_CAP_SECONDARY), \r
-    gShellDebug1HiiHandle, \r
+    -1, -1, NULL,\r
+    STRING_TOKEN (STR_PCI_EXT_CAP_SECONDARY),\r
+    gShellDebug1HiiHandle,\r
     Header->LinkControl3.Uint32,\r
     Header->LaneErrorStatus\r
     );\r
@@ -5633,7 +5633,7 @@ PrintInterpretedExtendedCompatibilitySecondary (
 **/\r
 EFI_STATUS\r
 PrintPciExtendedCapabilityDetails(\r
-  IN CONST PCI_EXP_EXT_HDR    *HeadersBaseAddress, \r
+  IN CONST PCI_EXP_EXT_HDR    *HeadersBaseAddress,\r
   IN CONST PCI_EXP_EXT_HDR    *HeaderAddress,\r
   IN CONST PCI_CAPABILITY_PCIEXP *PciExpressCapPtr\r
   )\r
@@ -5666,7 +5666,7 @@ PrintPciExtendedCapabilityDetails(
     case PCI_EXPRESS_EXTENDED_CAPABILITY_VIRTUAL_CHANNEL_ID:\r
     case PCI_EXPRESS_EXTENDED_CAPABILITY_MULTI_FUNCTION_VIRTUAL_CHANNEL_ID:\r
       return PrintInterpretedExtendedCompatibilityVirtualChannel(HeaderAddress, HeadersBaseAddress);\r
-    case PCI_EXPRESS_EXTENDED_CAPABILITY_MULTICAST_ID: \r
+    case PCI_EXPRESS_EXTENDED_CAPABILITY_MULTICAST_ID:\r
       //\r
       // should only be present if PCIE_CAP_DEVICEPORT_TYPE(PciExpressCapPtr->PcieCapReg) == 0100b, 0101b, or 0110b\r
       //\r
index fe612b877b484023f1b04c76db5b60980ae76c6f..564acfb8a279b7416eb0660432d9a90300500b31 100644 (file)
@@ -2,7 +2,7 @@
   Main file for SerMode shell Debug1 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -50,7 +50,7 @@ DisplaySettings (
 \r
   Status    = gBS->LocateHandleBuffer (ByProtocol, &gEfiSerialIoProtocolGuid, NULL, &NoHandles, &Handles);\r
   if (EFI_ERROR (Status)) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SERMODE_NO_FOUND), gShellDebug1HiiHandle, L"sermode");  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SERMODE_NO_FOUND), gShellDebug1HiiHandle, L"sermode");\r
     return SHELL_INVALID_PARAMETER;\r
   }\r
 \r
@@ -138,7 +138,7 @@ DisplaySettings (
         StopBits\r
        );\r
     } else {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SERMODE_NO_FOUND), gShellDebug1HiiHandle, L"sermode");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SERMODE_NO_FOUND), gShellDebug1HiiHandle, L"sermode");\r
       ShellStatus = SHELL_NOT_FOUND;\r
       break;\r
     }\r
@@ -150,7 +150,7 @@ DisplaySettings (
 \r
   if (Index == NoHandles) {\r
     if ((NoHandles != 0 && HandleValid) || 0 == NoHandles) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SERMODE_NOT_FOUND), gShellDebug1HiiHandle, L"sermode");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SERMODE_NOT_FOUND), gShellDebug1HiiHandle, L"sermode");\r
       ShellStatus = SHELL_NOT_FOUND;\r
     }\r
   }\r
@@ -199,7 +199,7 @@ ShellCommandRunSerMode (
   Status = ShellCommandLineParse (EmptyParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"sermode", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"sermode", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -207,10 +207,10 @@ ShellCommandRunSerMode (
     }\r
   } else {\r
     if (ShellCommandLineGetCount(Package) < 6 && ShellCommandLineGetCount(Package) > 2) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"sermode");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"sermode");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (ShellCommandLineGetCount(Package) > 6) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"sermode");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"sermode");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       Temp = ShellCommandLineGetRawValue(Package, 1);\r
@@ -235,7 +235,7 @@ ShellCommandRunSerMode (
       }\r
       Temp = ShellCommandLineGetRawValue(Package, 3);\r
       if (Temp == NULL || StrLen(Temp)>1) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"sermode", Temp);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"sermode", Temp);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else {\r
         switch(Temp[0]){\r
@@ -264,7 +264,7 @@ ShellCommandRunSerMode (
           Parity = SpaceParity;\r
           break;\r
         default:\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"sermode", Temp);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"sermode", Temp);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
           goto Done;\r
         }\r
@@ -284,7 +284,7 @@ ShellCommandRunSerMode (
       case 8:\r
         break;\r
       default:\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"sermode", Temp);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"sermode", Temp);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         goto Done;\r
       }\r
@@ -308,13 +308,13 @@ ShellCommandRunSerMode (
         break;\r
 \r
       default:\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"sermode", Temp);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"sermode", Temp);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         goto Done;\r
       }\r
       Status = gBS->LocateHandleBuffer(ByProtocol, &gEfiSerialIoProtocolGuid, NULL, &NoHandles, &Handles);\r
       if (EFI_ERROR (Status)) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SERMODE_NO_FOUND), gShellDebug1HiiHandle, L"sermode");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SERMODE_NO_FOUND), gShellDebug1HiiHandle, L"sermode");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         goto Done;\r
       }\r
@@ -337,13 +337,13 @@ ShellCommandRunSerMode (
                              );\r
           if (EFI_ERROR (Status)) {\r
             if (Status == EFI_INVALID_PARAMETER) {\r
-              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SERMODE_SET_UNSUPPORTED), gShellDebug1HiiHandle, L"sermode", ConvertHandleToHandleIndex(Handles[Index]));  \r
+              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SERMODE_SET_UNSUPPORTED), gShellDebug1HiiHandle, L"sermode", ConvertHandleToHandleIndex(Handles[Index]));\r
               ShellStatus = SHELL_UNSUPPORTED;\r
             } else if (Status == EFI_DEVICE_ERROR) {\r
-              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SERMODE_SET_DEV_ERROR), gShellDebug1HiiHandle, L"sermode", ConvertHandleToHandleIndex(Handles[Index]));  \r
+              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SERMODE_SET_DEV_ERROR), gShellDebug1HiiHandle, L"sermode", ConvertHandleToHandleIndex(Handles[Index]));\r
               ShellStatus = SHELL_ACCESS_DENIED;\r
             } else {\r
-              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SERMODE_SET_FAIL), gShellDebug1HiiHandle, L"sermode", ConvertHandleToHandleIndex(Handles[Index]));  \r
+              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SERMODE_SET_FAIL), gShellDebug1HiiHandle, L"sermode", ConvertHandleToHandleIndex(Handles[Index]));\r
               ShellStatus = SHELL_ACCESS_DENIED;\r
             }\r
           } else {\r
@@ -356,7 +356,7 @@ ShellCommandRunSerMode (
   }\r
 \r
   if (ShellStatus == SHELL_SUCCESS && Index == NoHandles) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SERMODE_BAD_HANDLE), gShellDebug1HiiHandle, L"sermode", HandleIdx);  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SERMODE_BAD_HANDLE), gShellDebug1HiiHandle, L"sermode", HandleIdx);\r
     ShellStatus = SHELL_INVALID_PARAMETER;\r
   }\r
 \r
index a33aec12a515e6a6f3d6aec85c79b776cb7d3dbf..14d8b719cd841aaaafb9f469e86ebc6cb6ba77cc 100644 (file)
@@ -2,7 +2,7 @@
   Main file for SetSize shell Debug1 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -55,7 +55,7 @@ ShellCommandRunSetSize (
   Status = ShellCommandLineParse (EmptyParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"setsize", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"setsize", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -63,13 +63,13 @@ ShellCommandRunSetSize (
     }\r
   } else {\r
     if (ShellCommandLineGetCount(Package) < 3) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"setsize");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"setsize");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
       NewSize = 0;\r
     } else {\r
       Temp1 = ShellCommandLineGetRawValue(Package, 1);\r
       if (!ShellIsHexOrDecimalNumber(Temp1, FALSE, FALSE)) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SIZE_NOT_SPEC), gShellDebug1HiiHandle, L"setsize");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SIZE_NOT_SPEC), gShellDebug1HiiHandle, L"setsize");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         NewSize = 0;\r
       } else {\r
@@ -82,19 +82,19 @@ ShellCommandRunSetSize (
         Status = ShellOpenFileByName(ShellCommandLineGetRawValue(Package, LoopVar), &FileHandle, EFI_FILE_MODE_READ|EFI_FILE_MODE_WRITE|EFI_FILE_MODE_CREATE, 0);\r
       }\r
       if (EFI_ERROR(Status) && LoopVar == 2) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_NOT_SPEC), gShellDebug1HiiHandle, L"setsize");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_FILE_NOT_SPEC), gShellDebug1HiiHandle, L"setsize");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else if (EFI_ERROR(Status)) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"setsize", ShellCommandLineGetRawValue(Package, LoopVar));  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellDebug1HiiHandle, L"setsize", ShellCommandLineGetRawValue(Package, LoopVar));\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         break;\r
       } else {\r
         Status = FileHandleSetSize(FileHandle, NewSize);\r
         if (Status == EFI_VOLUME_FULL) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_VOLUME_FULL), gShellDebug1HiiHandle, L"setsize");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_VOLUME_FULL), gShellDebug1HiiHandle, L"setsize");\r
           ShellStatus = SHELL_VOLUME_FULL;\r
         } else if (EFI_ERROR(Status)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SET_SIZE_FAIL), gShellDebug1HiiHandle, L"setsize", ShellCommandLineGetRawValue(Package, LoopVar));  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SET_SIZE_FAIL), gShellDebug1HiiHandle, L"setsize", ShellCommandLineGetRawValue(Package, LoopVar));\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else {\r
           ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SET_SIZE_DONE), gShellDebug1HiiHandle, ShellCommandLineGetRawValue(Package, LoopVar));\r
index b7d3bbdc03f6258a4254fa00b7fe9f88ec5cd5d8..b4f2da4fd93c1713ecc89dcfd03fc30070346e02 100644 (file)
@@ -2,7 +2,7 @@
   Main file for SetVar shell Debug1 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -378,19 +378,19 @@ ShellCommandRunSetVar (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"setvar", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"setvar", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       ASSERT(FALSE);\r
     }\r
   } else if (ShellCommandLineCheckDuplicate (Package,&ProblemParam) != EFI_SUCCESS) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_DUPLICATE), gShellDebug1HiiHandle, L"setvar", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_DUPLICATE), gShellDebug1HiiHandle, L"setvar", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
   } else {\r
     if (ShellCommandLineGetCount(Package) < 2) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"setvar");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDebug1HiiHandle, L"setvar");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       VariableName  = ShellCommandLineGetRawValue(Package, 1);\r
@@ -400,7 +400,7 @@ ShellCommandRunSetVar (
         StringGuid = ShellCommandLineGetValue(Package, L"-guid");\r
         RStatus = StrToGuid (StringGuid, &Guid);\r
         if (RETURN_ERROR (RStatus) || (StringGuid[GUID_STRING_LENGTH] != L'\0')) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"setvar", StringGuid);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDebug1HiiHandle, L"setvar", StringGuid);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         }\r
       }\r
index edfdcc9b2ac02d33e244a9eda72b08140abf265d..bf14ba654ace659937ec9f7cbad6d71ce3a2f37a 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   API for SMBIOS table.\r
 \r
-  Copyright (c) 2005 - 2015, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -11,7 +11,7 @@
   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
-    \r
+\r
 \r
 #include "UefiShellDebug1CommandsLib.h"\r
 #include <Guid/SmBios.h>\r
index 7a75554d7952464aee784a5a038bc289f21d512a..93c6094df1fffec376986eeb770971fe57d5f7ba 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   Module for clarifying the content of the smbios structure element information.\r
 \r
-  Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved.<BR>\r
-  (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>  \r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
   (C) Copyright 2015-2017 Hewlett Packard Enterprise Development LP<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -2892,7 +2892,7 @@ DisplaySBDSManufactureDate (
 /**\r
   Display System Reset (Type 23) information.\r
 \r
-  \r
+\r
 Identifies the system-reset capabilities for the system.\r
  Bits 7:6 Reserved for future assignment via this specification, set to 00b.\r
  Bit 5  System contains a watchdog timer, either True (1) or False (0).\r
@@ -2996,7 +2996,7 @@ DisplaySystemResetCapabilities (
 /**\r
   Display Hardware Security (Type 24) information.\r
 \r
-    \r
+\r
 Identifies the password and reset status for the system:\r
 \r
 Bits 7:6    Power-on Password Status, one of:\r
index 3c561ad8583524fca2d360329200717bf32ff305..b56cd61d07fadea98559d1fad46a337e449d5027 100644 (file)
@@ -2,7 +2,7 @@
   Build a table, each item is (Key, Info) pair.\r
   And give a interface of query a string out of a table.\r
 \r
-  Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
   (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -3412,7 +3412,7 @@ QueryTable (
     // Check if Key is in the range\r
     // or if Key == Value in the table\r
     //\r
-    if ((High > Low && Key >= Low && Key <= High) \r
+    if ((High > Low && Key >= Low && Key <= High)\r
       || (Table[Index].Key == Key)) {\r
       StrnCpyS (Info, InfoLen, Table[Index].Info, InfoLen - 1);\r
       StrnCatS (Info, InfoLen, L"\n", InfoLen - 1 - StrLen(Info));\r
index 6e7c7637a19a4de1dce8354a134ec3990a8b1a2b..e20b20793df61f1e80d6036976cad240a3370b0f 100644 (file)
@@ -2,7 +2,7 @@
   Tools of clarify the content of the smbios table.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -69,7 +69,7 @@ ShellCommandRunSmbiosView (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"smbiosview", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDebug1HiiHandle, L"smbiosview", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -77,13 +77,13 @@ ShellCommandRunSmbiosView (
     }\r
   } else {\r
     if (ShellCommandLineGetCount(Package) > 1) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"smbiosview");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"smbiosview");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (ShellCommandLineGetFlag(Package, L"-t") && ShellCommandLineGetValue(Package, L"-t") == NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDebug1HiiHandle, L"smbiosview", L"-t");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDebug1HiiHandle, L"smbiosview", L"-t");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (ShellCommandLineGetFlag(Package, L"-h") && ShellCommandLineGetValue(Package, L"-h") == NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDebug1HiiHandle,  L"smbiosview", L"-h");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDebug1HiiHandle,  L"smbiosview", L"-h");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (\r
         (ShellCommandLineGetFlag(Package, L"-t") && ShellCommandLineGetFlag(Package, L"-h")) ||\r
@@ -93,7 +93,7 @@ ShellCommandRunSmbiosView (
         (ShellCommandLineGetFlag(Package, L"-h") && ShellCommandLineGetFlag(Package, L"-a")) ||\r
         (ShellCommandLineGetFlag(Package, L"-s") && ShellCommandLineGetFlag(Package, L"-a"))\r
       ) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"smbiosview");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDebug1HiiHandle, L"smbiosview");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
 \r
@@ -103,30 +103,30 @@ ShellCommandRunSmbiosView (
       Status1 = LibSmbiosInit ();\r
       Status2 = LibSmbios64BitInit ();\r
       if (EFI_ERROR (Status1) && EFI_ERROR (Status2)) {\r
-       ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_LIBSMBIOSVIEW_CANNOT_GET_TABLE), gShellDebug1HiiHandle);\r
+        ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_LIBSMBIOSVIEW_CANNOT_GET_TABLE), gShellDebug1HiiHandle);\r
         ShellStatus = SHELL_NOT_FOUND;\r
         goto Done;\r
       }\r
-      \r
+\r
       StructType    = STRUCTURE_TYPE_RANDOM;\r
       RandomView    = TRUE;\r
-      \r
+\r
       Temp          = ShellCommandLineGetValue(Package, L"-t");\r
       if (Temp != NULL) {\r
         StructType = (UINT8) ShellStrToUintn (Temp);\r
       }\r
-      \r
+\r
       if (ShellCommandLineGetFlag(Package, L"-a")) {\r
         gShowType = SHOW_ALL;\r
       }\r
-      \r
+\r
       if (!EFI_ERROR (Status1)) {\r
         //\r
         // Initialize the StructHandle to be the first handle\r
         //\r
         StructHandle  = INVALID_HANDLE;\r
         LibGetSmbiosStructure (&StructHandle, NULL, NULL);\r
-        \r
+\r
         Temp = ShellCommandLineGetValue(Package, L"-h");\r
         if (Temp != NULL) {\r
           RandomView   = FALSE;\r
@@ -140,7 +140,7 @@ ShellCommandRunSmbiosView (
           ShellStatus = SHELL_NOT_FOUND;\r
           goto Done;\r
         }\r
-        \r
+\r
         if (ShellCommandLineGetFlag(Package, L"-s")) {\r
           Status = DisplayStatisticsTable (SHOW_DETAIL);\r
           if (EFI_ERROR(Status)) {\r
@@ -148,7 +148,7 @@ ShellCommandRunSmbiosView (
           }\r
           goto Show64Bit;\r
         }\r
-        \r
+\r
         //\r
         // Show SMBIOS structure information\r
         //\r
@@ -174,13 +174,13 @@ Show64Bit:
         //\r
         StructHandle  = INVALID_HANDLE;\r
         LibGetSmbios64BitStructure (&StructHandle, NULL, NULL);\r
-        \r
+\r
         Temp = ShellCommandLineGetValue(Package, L"-h");\r
         if (Temp != NULL) {\r
           RandomView   = FALSE;\r
           StructHandle = (UINT16) ShellStrToUintn(Temp);\r
         }\r
-        \r
+\r
         if (ShellCommandLineGetFlag(Package, L"-s")) {\r
           Status = DisplaySmbios64BitStatisticsTable (SHOW_DETAIL);\r
           if (EFI_ERROR(Status)) {\r
@@ -188,7 +188,7 @@ Show64Bit:
           }\r
           goto Done;\r
         }\r
-        \r
+\r
         //\r
         // Show SMBIOS structure information\r
         //\r
@@ -666,7 +666,7 @@ InitSmbiosTableStatistics (
   @param[out] NumberOfSmbios64Structures  The number of structures in 64-bit SMBIOS table.\r
   @param[out] Smbios64TableLength         The total length of 64-bit SMBIOS table.\r
 \r
-  @retval EFI_SUCCESS                                                  Calculation was successful.\r
+  @retval EFI_SUCCESS                     Calculation was successful.\r
 **/\r
 EFI_STATUS\r
 CalculateSmbios64BitStructureCountAndLength (\r
@@ -677,10 +677,10 @@ CalculateSmbios64BitStructureCountAndLength (
 {\r
   SMBIOS_STRUCTURE_POINTER        Smbios;\r
   UINT8                           *Raw;\r
-  \r
+\r
   *Smbios64TableLength = 0;\r
   *NumberOfSmbios64Structures = 0;\r
-  \r
+\r
   Smbios.Raw = (UINT8 *)(UINTN)(Smbios64EntryPoint->TableAddress);\r
   while (TRUE) {\r
     if (Smbios.Hdr->Type == 127) {\r
@@ -702,11 +702,11 @@ CalculateSmbios64BitStructureCountAndLength (
     //\r
     (*Smbios64TableLength) += ((UINTN) Smbios.Raw - (UINTN) Raw);\r
     if ((*Smbios64TableLength) > Smbios64EntryPoint->TableMaximumSize) {\r
-       //\r
-       // The actual table length exceeds maximum table size,\r
-       // There should be something wrong with SMBIOS table.\r
-       //\r
-       return EFI_INVALID_PARAMETER;\r
+      //\r
+      // The actual table length exceeds maximum table size,\r
+      // There should be something wrong with SMBIOS table.\r
+      //\r
+      return EFI_INVALID_PARAMETER;\r
     }\r
     (*NumberOfSmbios64Structures)++;\r
   }\r
@@ -727,7 +727,7 @@ InitSmbios64BitTableStatistics (
   UINT16                    Length;\r
   UINT16                    Offset;\r
   UINT16                    Index;\r
-       EFI_STATUS                                                              Status;\r
+  EFI_STATUS                Status;\r
   SMBIOS_STRUCTURE_POINTER      SmbiosStruct;\r
   SMBIOS_TABLE_3_0_ENTRY_POINT  *SMBiosTable;\r
   STRUCTURE_STATISTICS          *StatisticsPointer;\r
@@ -755,9 +755,9 @@ InitSmbios64BitTableStatistics (
   //\r
   Status = CalculateSmbios64BitStructureCountAndLength (SMBiosTable, &mNumberOfSmbios64BitStructures, &mSmbios64BitTableLength);\r
   if ((EFI_ERROR (Status)) || (mSmbios64BitTableLength > SMBiosTable->TableMaximumSize)) {\r
-       return EFI_INVALID_PARAMETER;\r
+    return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   mSmbios64BitStatisticsTable = (STRUCTURE_STATISTICS *) AllocateZeroPool (mNumberOfSmbios64BitStructures * sizeof (STRUCTURE_STATISTICS));\r
 \r
   if (mSmbios64BitStatisticsTable == NULL) {\r
index b45e9a33f393529bfbb33ef9715c108d43e5e232..bd4dfa98f796f08910f9f7a7afb4acdd45157c85 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Main file for NULL named library for debug1 profile shell command functions.\r
 \r
-  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -173,7 +173,7 @@ GetSystemConfigurationTable (
 \r
 /**\r
   Clear the line at the specified Row.\r
-  \r
+\r
   @param[in] Row                The row number to be cleared ( start from 1 )\r
   @param[in] LastCol            The last printable column.\r
   @param[in] LastRow            The last printable row.\r
@@ -210,7 +210,7 @@ EditorClearLine (
         Line[LastCol % (ARRAY_SIZE (Line) - 1)] = CHAR_NULL;\r
       }\r
     }\r
\r
+\r
     //\r
     // print out the blank line\r
     //\r
@@ -243,7 +243,7 @@ IsValidFileNameChar (
 \r
 /**\r
   Check if file name has illegal characters.\r
-  \r
+\r
   @param Name       The filename to check.\r
 \r
   @retval TRUE      The filename is ok.\r
@@ -323,18 +323,18 @@ EditGetDefaultFileName (
 }\r
 \r
 /**\r
-  Read a file into an allocated buffer.  The buffer is the responsibility \r
+  Read a file into an allocated buffer.  The buffer is the responsibility\r
   of the caller to free.\r
 \r
   @param[in]  FileName          The filename of the file to open.\r
-  @param[out] Buffer            Upon successful return, the pointer to the \r
-                                address of the allocated buffer.                                  \r
+  @param[out] Buffer            Upon successful return, the pointer to the\r
+                                address of the allocated buffer.\r
   @param[out] BufferSize        If not NULL, then the pointer to the size\r
                                 of the allocated buffer.\r
   @param[out] ReadOnly          Upon successful return TRUE if the file is\r
                                 read only.  FALSE otherwise.\r
 \r
-  @retval EFI_NOT_FOUND         The filename did not represent a file in the \r
+  @retval EFI_NOT_FOUND         The filename did not represent a file in the\r
                                 file system.\r
   @retval EFI_SUCCESS           The file was read into the buffer.\r
   @retval EFI_OUT_OF_RESOURCES  A memory allocation failed.\r
@@ -381,7 +381,7 @@ ReadFileIntoBuffer (
     }\r
 \r
     Info = ShellGetFileInfo(FileHandle);\r
-    \r
+\r
     if (Info->Attribute & EFI_FILE_DIRECTORY) {\r
       FreePool (Info);\r
       return EFI_INVALID_PARAMETER;\r
index 80a8476a5ef54cacdc6566185cfcef7ecfc1d150..c4ef9909e845ecfe286509d963fbbd6ec63f4c9d 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Main file for NULL named library for Profile1 shell command functions.\r
 \r
-  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -312,7 +312,7 @@ ShellCommandRunHexEdit (
 \r
 /**\r
   Clear the line at the specified Row.\r
-  \r
+\r
   @param[in] Row                The row number to be cleared ( start from 1 )\r
   @param[in] LastCol            The last printable column.\r
   @param[in] LastRow            The last printable row.\r
@@ -326,7 +326,7 @@ EditorClearLine (
 \r
 /**\r
   Check if file name has illegal characters.\r
-  \r
+\r
   @param Name       The filename to check.\r
 \r
   @retval TRUE      The filename is ok.\r
@@ -351,18 +351,18 @@ EditGetDefaultFileName (
   );\r
 \r
 /**\r
-  Read a file into an allocated buffer.  The buffer is the responsibility \r
+  Read a file into an allocated buffer.  The buffer is the responsibility\r
   of the caller to free.\r
 \r
   @param[in]  FileName          The filename of the file to open.\r
-  @param[out] Buffer            Upon successful return, the pointer to the \r
-                                address of the allocated buffer.                                  \r
+  @param[out] Buffer            Upon successful return, the pointer to the\r
+                                address of the allocated buffer.\r
   @param[out] BufferSize        If not NULL, then the pointer to the size\r
                                 of the allocated buffer.\r
   @param[out] ReadOnly          Upon successful return TRUE if the file is\r
                                 read only.  FALSE otherwise.\r
 \r
-  @retval EFI_NOT_FOUND         The filename did not represent a file in the \r
+  @retval EFI_NOT_FOUND         The filename did not represent a file in the\r
                                 file system.  Directories cannot be read with\r
                                 this method.\r
   @retval EFI_SUCCESS           The file was read into the buffer.\r
index 6b837b5faab3d567d8beac7cc8e9919d9eff234c..3ea51ec0823151afa594ea3822412b101da846ab 100644 (file)
@@ -1,7 +1,7 @@
 ##  @file\r
 # Provides shell Debug1 profile functions\r
 #\r
-# Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -64,8 +64,8 @@
   EditStatusBar.c\r
   EditMenuBar.h\r
   EditMenuBar.c\r
-  \r
-## Files specific to the text editor  \r
+\r
+## Files specific to the text editor\r
   Edit/Edit.c\r
   Edit/TextEditor.h\r
   Edit/TextEditorTypes.h\r
@@ -76,7 +76,7 @@
   Edit/Misc.h\r
   Edit/Misc.c\r
   Edit/TextEditStrings.uni\r
-  \r
+\r
 ## Files specific to the HEX editor\r
   HexEdit/BufferImage.h\r
   HexEdit/BufferImage.c\r
index 011a7bfc2db66f74c51142a2b249ca561716228c..ae1b9b2b0d2120aabf8ee9759023ea3089d1ba87 100644 (file)
@@ -1,6 +1,6 @@
 // /**\r
 //\r
-// Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 // (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
 // (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
 // This program and the accompanying materials\r
 "  2. The variable value is printed as a hexadecimal dump.\r\n"\r
 "  3. Option -d is used to delete variables. Option -s and -l are used to save\r\n"\r
 "     and load variables to and from a file. The variable name can be specified\r\n"\r
-"     when using these flags so that the operation only takes effect on\r\n" \r
+"     when using these flags so that the operation only takes effect on\r\n"\r
 "     that variable.\r\n"\r
 ".SH EXAMPLES\r\n"\r
 " \r\n"\r
index dd868a7016af2287a743e015b196edf4e191c647..24a327904297c2308504a7d05c722527e241bbe7 100644 (file)
@@ -2,7 +2,7 @@
   Main file for connect shell Driver1 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -36,16 +36,16 @@ ShellConnectDevicePath (
   EFI_STATUS                Status;\r
   EFI_HANDLE                Handle;\r
   EFI_HANDLE                PreviousHandle;\r
-  \r
+\r
   if (DevicePathToConnect == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
   PreviousHandle = NULL;\r
-  do{    \r
+  do{\r
     RemainingDevicePath = DevicePathToConnect;\r
     Status = gBS->LocateDevicePath (&gEfiDevicePathProtocolGuid, &RemainingDevicePath, &Handle);\r
-    \r
+\r
     if (!EFI_ERROR (Status) && (Handle != NULL)) {\r
       if (PreviousHandle == Handle) {\r
         Status = EFI_NOT_FOUND;\r
@@ -54,16 +54,16 @@ ShellConnectDevicePath (
         Status = gBS->ConnectController (Handle, NULL, RemainingDevicePath, FALSE);\r
       }\r
     }\r
-    \r
+\r
   } while (!EFI_ERROR (Status) && !IsDevicePathEnd (RemainingDevicePath) );\r
-  \r
+\r
   return Status;\r
-   \r
+\r
 }\r
 \r
 /**\r
   Connect drivers for PCI root bridge.\r
-  \r
+\r
   @retval EFI_SUCCESS                     Connect drivers successfully.\r
   @retval EFI_NOT_FOUND                   Cannot find PCI root bridge device.\r
 \r
@@ -72,31 +72,31 @@ EFI_STATUS
 ShellConnectPciRootBridge (\r
   VOID\r
   )\r
-{  \r
+{\r
   UINTN               RootBridgeHandleCount;\r
   EFI_HANDLE          *RootBridgeHandleBuffer;\r
   UINTN               RootBridgeIndex;\r
   EFI_STATUS          Status;\r
-  \r
+\r
   RootBridgeHandleCount = 0;\r
-  \r
-  Status = gBS->LocateHandleBuffer (  \r
-              ByProtocol,  \r
-              &gEfiPciRootBridgeIoProtocolGuid, \r
-              NULL,  \r
-              &RootBridgeHandleCount,  \r
-              &RootBridgeHandleBuffer  \r
+\r
+  Status = gBS->LocateHandleBuffer (\r
+              ByProtocol,\r
+              &gEfiPciRootBridgeIoProtocolGuid,\r
+              NULL,\r
+              &RootBridgeHandleCount,\r
+              &RootBridgeHandleBuffer\r
               );\r
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  \r
-  for (RootBridgeIndex = 0; RootBridgeIndex < RootBridgeHandleCount; RootBridgeIndex++) {    \r
-    gBS->ConnectController (RootBridgeHandleBuffer[RootBridgeIndex], NULL, NULL, FALSE);    \r
-  }  \r
+\r
+  for (RootBridgeIndex = 0; RootBridgeIndex < RootBridgeHandleCount; RootBridgeIndex++) {\r
+    gBS->ConnectController (RootBridgeHandleBuffer[RootBridgeIndex], NULL, NULL, FALSE);\r
+  }\r
 \r
   FreePool (RootBridgeHandleBuffer);\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
@@ -199,7 +199,7 @@ ShellConnectFromDevPaths (
 {\r
   EFI_DEVICE_PATH_PROTOCOL  *DevPath;\r
   EFI_DEVICE_PATH_PROTOCOL  *CopyOfDevPath;\r
-  EFI_DEVICE_PATH_PROTOCOL  *Instance;  \r
+  EFI_DEVICE_PATH_PROTOCOL  *Instance;\r
   EFI_DEVICE_PATH_PROTOCOL  *Next;\r
   UINTN                     Length;\r
   UINTN                     Index;\r
@@ -210,7 +210,7 @@ ShellConnectFromDevPaths (
   BOOLEAN                   AtLeastOneConnected;\r
   EFI_PCI_IO_PROTOCOL       *PciIo;\r
   UINT8                     Class[3];\r
-  \r
+\r
   DevPath = NULL;\r
   Length  = 0;\r
   AtLeastOneConnected = FALSE;\r
@@ -266,14 +266,14 @@ ShellConnectFromDevPaths (
       ((DevicePathSubType (Instance) == MSG_USB_CLASS_DP)\r
       || (DevicePathSubType (Instance) == MSG_USB_WWID_DP)\r
       )) {\r
-      \r
+\r
       Status = ShellConnectPciRootBridge ();\r
       if (EFI_ERROR(Status)) {\r
         FreePool(Instance);\r
         FreePool(DevPath);\r
         return Status;\r
       }\r
-      \r
+\r
       Status = gBS->LocateHandleBuffer (\r
                   ByProtocol,\r
                   &gEfiPciIoProtocolGuid,\r
@@ -281,7 +281,7 @@ ShellConnectFromDevPaths (
                   &HandleArrayCount,\r
                   &HandleArray\r
                   );\r
-      \r
+\r
       if (!EFI_ERROR (Status)) {\r
         for (Index = 0; Index < HandleArrayCount; Index++) {\r
           Status = gBS->HandleProtocol (\r
@@ -289,7 +289,7 @@ ShellConnectFromDevPaths (
                       &gEfiPciIoProtocolGuid,\r
                       (VOID **)&PciIo\r
                       );\r
-          \r
+\r
           if (!EFI_ERROR (Status)) {\r
             Status = PciIo->Pci.Read (PciIo, EfiPciIoWidthUint8, 0x09, 3, &Class);\r
             if (!EFI_ERROR (Status)) {\r
@@ -313,7 +313,7 @@ ShellConnectFromDevPaths (
       if (HandleArray != NULL) {\r
         FreePool (HandleArray);\r
       }\r
-    } else { \r
+    } else {\r
       //\r
       // connect the entire device path\r
       //\r
@@ -323,9 +323,9 @@ ShellConnectFromDevPaths (
       }\r
     }\r
     FreePool (Instance);\r
-    \r
+\r
   } while (CopyOfDevPath != NULL);\r
-  \r
+\r
   if (DevPath != NULL) {\r
     FreePool(DevPath);\r
   }\r
@@ -335,7 +335,7 @@ ShellConnectFromDevPaths (
   } else {\r
     return EFI_NOT_FOUND;\r
   }\r
-  \r
+\r
 }\r
 \r
 /**\r
@@ -437,7 +437,7 @@ ShellCommandRunConnect (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle, L"connect", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle, L"connect", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -456,7 +456,7 @@ ShellCommandRunConnect (
       //\r
       // error for too many parameters\r
       //\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"connect");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"connect");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (ShellCommandLineGetFlag(Package, L"-c")) {\r
       //\r
@@ -504,7 +504,7 @@ ShellCommandRunConnect (
         Status  = ShellConvertStringToUint64(Param1, &Intermediate, TRUE, FALSE);\r
         Handle1 = ConvertHandleIndexToHandle((UINTN)Intermediate);\r
         if (EFI_ERROR(Status)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"connect", Param1);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"connect", Param1);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         }\r
       } else {\r
@@ -515,22 +515,22 @@ ShellCommandRunConnect (
         Status  = ShellConvertStringToUint64(Param2, &Intermediate, TRUE, FALSE);\r
         Handle2 = ConvertHandleIndexToHandle((UINTN)Intermediate);\r
         if (EFI_ERROR(Status)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"connect", Param2);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"connect", Param2);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         }\r
       } else {\r
         Handle2 = NULL;\r
       }\r
-      \r
+\r
       if (ShellStatus == SHELL_SUCCESS) {\r
         if (Param1 != NULL && Handle1 == NULL){\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"connect", Param1);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"connect", Param1);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else if (Param2 != NULL && Handle2 == NULL) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"connect", Param2);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"connect", Param2);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else if (Handle2 != NULL && Handle1 != NULL && EFI_ERROR(gBS->OpenProtocol(Handle2, &gEfiDriverBindingProtocolGuid, NULL, gImageHandle, NULL, EFI_OPEN_PROTOCOL_TEST_PROTOCOL))) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"connect", Param2);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"connect", Param2);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else {\r
           Status = ConvertAndConnectControllers(Handle1, Handle2, ShellCommandLineGetFlag(Package, L"-r"), (BOOLEAN)(Count!=0));\r
index 6f070eeaa1fd4aec87bf6aaa86f979e58ff28f7c..0658f9b87a5495dcf8ddc868f5f4e97c7d9528fb 100644 (file)
@@ -2,7 +2,7 @@
   Main file for DevTree shell Driver1 function.\r
 \r
   (C) Copyright 2014-2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -58,12 +58,12 @@ DoDevTreeForHandle(
 \r
   ASSERT (TheHandle != NULL);\r
   ASSERT (HiiString != NULL);\r
-  \r
+\r
   if (ShellGetExecutionBreakFlag()) {\r
     ShellStatus = SHELL_ABORTED;\r
     return ShellStatus;\r
   }\r
-  \r
+\r
   //\r
   // We want controller handles.  they will not have LoadedImage or DriverBinding (or others...)\r
   //\r
@@ -184,7 +184,7 @@ ShellCommandRunDevTree (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle, L"devtree", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle, L"devtree", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -192,7 +192,7 @@ ShellCommandRunDevTree (
     }\r
   } else {\r
     if (ShellCommandLineGetCount(Package) > 2) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"devtree");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"devtree");\r
       ShellCommandLineFreeVarList (Package);\r
       return (SHELL_INVALID_PARAMETER);\r
     }\r
@@ -206,7 +206,7 @@ ShellCommandRunDevTree (
 //      AsciiSPrint(Language, 10, "en-us");\r
     } else {\r
       ASSERT(Language == NULL);\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDriver1HiiHandle, L"devtree",  L"-l");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDriver1HiiHandle, L"devtree",  L"-l");\r
       ShellCommandLineFreeVarList (Package);\r
       return (SHELL_INVALID_PARAMETER);\r
     }\r
@@ -259,7 +259,7 @@ ShellCommandRunDevTree (
     } else {\r
       Status = ShellConvertStringToUint64(Lang, &Intermediate, TRUE, FALSE);\r
       if (EFI_ERROR(Status) || ConvertHandleIndexToHandle((UINTN)Intermediate) == NULL) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"devtree", Lang);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"devtree", Lang);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else {\r
         ShellStatus = DoDevTreeForHandle(ConvertHandleIndexToHandle((UINTN)Intermediate), Language, FlagD, 0, HiiString);\r
index b725178ebd151cf4e43e589320a3a710c3b45acc..629167c24385ecad0bf0c53850bc7e6b6b9aadec 100644 (file)
@@ -2,7 +2,7 @@
   Main file for devices shell Driver1 function.\r
 \r
   (C) Copyright 2012-2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
   Get lots of info about a device from its handle.\r
 \r
   @param[in] TheHandle       The device handle to get info on.\r
-  @param[in, out] Type       On successful return R, B, or D (root, bus, or \r
+  @param[in, out] Type       On successful return R, B, or D (root, bus, or\r
                              device) will be placed in this buffer.\r
-  @param[in, out] Cfg        On successful return this buffer will be \r
+  @param[in, out] Cfg        On successful return this buffer will be\r
                              TRUE if the handle has configuration, FALSE\r
                              otherwise.\r
-  @param[in, out] Diag       On successful return this buffer will be \r
+  @param[in, out] Diag       On successful return this buffer will be\r
                              TRUE if the handle has disgnostics, FALSE\r
                              otherwise.\r
-  @param[in, out] Parents    On successful return this buffer will be \r
+  @param[in, out] Parents    On successful return this buffer will be\r
                              contain the number of parent handles.\r
-  @param[in, out] Devices    On successful return this buffer will be \r
+  @param[in, out] Devices    On successful return this buffer will be\r
                              contain the number of devices controlled.\r
-  @param[in, out] Children   On successful return this buffer will be \r
+  @param[in, out] Children   On successful return this buffer will be\r
                              contain the number of child handles.\r
   @param[out] Name           The pointer to a buffer that will be allocated\r
                              and contain the string name of the handle.\r
@@ -58,7 +58,7 @@ GetDeviceHandleInfo (
   EFI_HANDLE    *HandleBuffer;\r
   UINTN         Count;\r
 \r
-  if (TheHandle == NULL \r
+  if (TheHandle == NULL\r
     || Type == NULL\r
     || Cfg == NULL\r
     || Diag == NULL\r
@@ -168,7 +168,7 @@ ShellCommandRunDevices (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle, L"devices", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle, L"devices", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -182,7 +182,7 @@ ShellCommandRunDevices (
       //\r
       // error for too many parameters\r
       //\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"devices");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"devices");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       //\r
@@ -198,7 +198,7 @@ ShellCommandRunDevices (
 //        AsciiSPrint(Language, 10, "en-us");\r
       } else {\r
         ASSERT(Language == NULL);\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDriver1HiiHandle, L"devices",  L"-l");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDriver1HiiHandle, L"devices",  L"-l");\r
         ShellCommandLineFreeVarList (Package);\r
         return (SHELL_INVALID_PARAMETER);\r
       }\r
@@ -253,13 +253,13 @@ ShellCommandRunDevices (
           ShellStatus = SHELL_ABORTED;\r
           break;\r
         }\r
-        \r
+\r
       }\r
 \r
       if (HandleList != NULL) {\r
         FreePool(HandleList);\r
       }\r
\r
+\r
     }\r
     SHELL_FREE_NON_NULL(Language);\r
     ShellCommandLineFreeVarList (Package);\r
index a7bd2516d02862e25e151f861610200068081449..5e8db3d66c58a1edbbc664a189c71f2ce12096ae 100644 (file)
@@ -2,7 +2,7 @@
   Main file for Dh shell Driver1 function.\r
 \r
   (C) Copyright 2014-2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   (C) Copyright 2017 Hewlett Packard Enterprise Development LP<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -342,7 +342,7 @@ GetProtocolInfoString(
       }\r
     }\r
   }\r
-  \r
+\r
   SHELL_FREE_NON_NULL(ProtocolGuidArray);\r
 \r
   if (RetVal == NULL) {\r
@@ -395,7 +395,7 @@ GetDriverImageName (
 \r
 /**\r
   Display driver model information for a given handle.\r
-  \r
+\r
   @param[in] Handle     The handle to display info on.\r
   @param[in] BestName   Use the best name?\r
   @param[in] Language   The language to output in.\r
@@ -483,14 +483,14 @@ DisplayDriverModelHandle (
     Status = gEfiShellProtocol->GetDeviceName(Handle, EFI_DEVICE_NAME_USE_COMPONENT_NAME|EFI_DEVICE_NAME_USE_DEVICE_PATH, (CHAR8*)Language, &TempStringPointer);\r
     ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_DH_OUTPUT_DRIVER1), gShellDriver1HiiHandle, TempStringPointer!=NULL?TempStringPointer:L"<Unknown>");\r
     SHELL_FREE_NON_NULL(TempStringPointer);\r
-  \r
+\r
     TempStringPointer = ConvertDevicePathToText(DevicePath, TRUE, FALSE);\r
     ShellPrintHiiEx(\r
-      -1, \r
-      -1, \r
-      NULL, \r
-      STRING_TOKEN (STR_DH_OUTPUT_DRIVER2), \r
-      gShellDriver1HiiHandle, \r
+      -1,\r
+      -1,\r
+      NULL,\r
+      STRING_TOKEN (STR_DH_OUTPUT_DRIVER2),\r
+      gShellDriver1HiiHandle,\r
       TempStringPointer!=NULL?TempStringPointer:L"<None>",\r
       ParentControllerHandleCount == 0?L"ROOT":(ChildControllerHandleCount > 0)?L"BUS":L"DEVICE",\r
       ConfigurationStatus?L"YES":L"NO",\r
@@ -501,20 +501,20 @@ DisplayDriverModelHandle (
 \r
     if (DriverBindingHandleCount == 0) {\r
       ShellPrintHiiEx(\r
-        -1, \r
-        -1, \r
-        NULL, \r
-        STRING_TOKEN (STR_DH_OUTPUT_DRIVER3), \r
-        gShellDriver1HiiHandle, \r
+        -1,\r
+        -1,\r
+        NULL,\r
+        STRING_TOKEN (STR_DH_OUTPUT_DRIVER3),\r
+        gShellDriver1HiiHandle,\r
         L"<None>"\r
         );\r
     } else {\r
       ShellPrintHiiEx(\r
-        -1, \r
-        -1, \r
-        NULL, \r
-        STRING_TOKEN (STR_DH_OUTPUT_DRIVER3), \r
-        gShellDriver1HiiHandle, \r
+        -1,\r
+        -1,\r
+        NULL,\r
+        STRING_TOKEN (STR_DH_OUTPUT_DRIVER3),\r
+        gShellDriver1HiiHandle,\r
         L""\r
         );\r
       for (Index = 0; Index < DriverBindingHandleCount; Index++) {\r
@@ -536,9 +536,9 @@ DisplayDriverModelHandle (
 \r
         if (Image) {\r
           ShellPrintHiiEx(\r
-            -1, \r
-            -1, \r
-            NULL, \r
+            -1,\r
+            -1,\r
+            NULL,\r
             STRING_TOKEN (STR_DH_OUTPUT_DRIVER4A),\r
             gShellDriver1HiiHandle,\r
             ConvertHandleToHandleIndex (DriverBindingHandleBuffer[Index]),\r
@@ -546,9 +546,9 @@ DisplayDriverModelHandle (
             );\r
         } else {\r
           ShellPrintHiiEx(\r
-            -1, \r
-            -1, \r
-            NULL, \r
+            -1,\r
+            -1,\r
+            NULL,\r
             STRING_TOKEN (STR_DH_OUTPUT_DRIVER4B),\r
             gShellDriver1HiiHandle,\r
             ConvertHandleToHandleIndex (DriverBindingHandleBuffer[Index]),\r
@@ -561,28 +561,28 @@ DisplayDriverModelHandle (
 \r
     if (ParentControllerHandleCount == 0) {\r
       ShellPrintHiiEx(\r
-        -1, \r
-        -1, \r
-        NULL, \r
-        STRING_TOKEN (STR_DH_OUTPUT_DRIVER5), \r
-        gShellDriver1HiiHandle, \r
+        -1,\r
+        -1,\r
+        NULL,\r
+        STRING_TOKEN (STR_DH_OUTPUT_DRIVER5),\r
+        gShellDriver1HiiHandle,\r
         L"<None>"\r
         );\r
     } else {\r
       ShellPrintHiiEx(\r
-        -1, \r
-        -1, \r
-        NULL, \r
-        STRING_TOKEN (STR_DH_OUTPUT_DRIVER5), \r
-        gShellDriver1HiiHandle, \r
+        -1,\r
+        -1,\r
+        NULL,\r
+        STRING_TOKEN (STR_DH_OUTPUT_DRIVER5),\r
+        gShellDriver1HiiHandle,\r
         L""\r
         );\r
       for (Index = 0; Index < ParentControllerHandleCount; Index++) {\r
         Status = gEfiShellProtocol->GetDeviceName(ParentControllerHandleBuffer[Index], EFI_DEVICE_NAME_USE_COMPONENT_NAME|EFI_DEVICE_NAME_USE_DEVICE_PATH, (CHAR8*)Language, &TempStringPointer);\r
         ShellPrintHiiEx(\r
-          -1, \r
-          -1, \r
-          NULL, \r
+          -1,\r
+          -1,\r
+          NULL,\r
           STRING_TOKEN (STR_DH_OUTPUT_DRIVER5B),\r
           gShellDriver1HiiHandle,\r
           ConvertHandleToHandleIndex (ParentControllerHandleBuffer[Index]),\r
@@ -594,28 +594,28 @@ DisplayDriverModelHandle (
 \r
     if (ChildControllerHandleCount == 0) {\r
       ShellPrintHiiEx(\r
-        -1, \r
-        -1, \r
-        NULL, \r
-        STRING_TOKEN (STR_DH_OUTPUT_DRIVER6), \r
-        gShellDriver1HiiHandle, \r
+        -1,\r
+        -1,\r
+        NULL,\r
+        STRING_TOKEN (STR_DH_OUTPUT_DRIVER6),\r
+        gShellDriver1HiiHandle,\r
         L"<None>"\r
         );\r
     } else {\r
       ShellPrintHiiEx(\r
-        -1, \r
-        -1, \r
-        NULL, \r
-        STRING_TOKEN (STR_DH_OUTPUT_DRIVER6), \r
-        gShellDriver1HiiHandle, \r
+        -1,\r
+        -1,\r
+        NULL,\r
+        STRING_TOKEN (STR_DH_OUTPUT_DRIVER6),\r
+        gShellDriver1HiiHandle,\r
         L""\r
         );\r
       for (Index = 0; Index < ChildControllerHandleCount; Index++) {\r
         Status = gEfiShellProtocol->GetDeviceName(ChildControllerHandleBuffer[Index], EFI_DEVICE_NAME_USE_COMPONENT_NAME|EFI_DEVICE_NAME_USE_DEVICE_PATH, (CHAR8*)Language, &TempStringPointer);\r
         ShellPrintHiiEx(\r
-          -1, \r
-          -1, \r
-          NULL, \r
+          -1,\r
+          -1,\r
+          NULL,\r
           STRING_TOKEN (STR_DH_OUTPUT_DRIVER6B),\r
           gShellDriver1HiiHandle,\r
           ConvertHandleToHandleIndex (ChildControllerHandleBuffer[Index]),\r
@@ -675,9 +675,9 @@ DisplayDriverModelHandle (
   }\r
 \r
   ShellPrintHiiEx(\r
-    -1, \r
-    -1, \r
-    NULL, \r
+    -1,\r
+    -1,\r
+    NULL,\r
     STRING_TOKEN (STR_DH_OUTPUT_DRIVER7),\r
     gShellDriver1HiiHandle,\r
     ConvertHandleToHandleIndex(Handle),\r
@@ -692,9 +692,9 @@ DisplayDriverModelHandle (
     DriverName = NULL;\r
   }\r
   ShellPrintHiiEx(\r
-    -1, \r
-    -1, \r
-    NULL, \r
+    -1,\r
+    -1,\r
+    NULL,\r
     STRING_TOKEN (STR_DH_OUTPUT_DRIVER7B),\r
     gShellDriver1HiiHandle,\r
     DriverName!=NULL?DriverName:L"<Unknown>"\r
@@ -702,11 +702,11 @@ DisplayDriverModelHandle (
   SHELL_FREE_NON_NULL(DriverName);\r
 \r
   ShellPrintHiiEx(\r
-    -1, \r
-    -1, \r
-    NULL, \r
-    STRING_TOKEN (STR_DH_OUTPUT_DRIVER8), \r
-    gShellDriver1HiiHandle, \r
+    -1,\r
+    -1,\r
+    NULL,\r
+    STRING_TOKEN (STR_DH_OUTPUT_DRIVER8),\r
+    gShellDriver1HiiHandle,\r
     DriverBinding->Version,\r
     NumberOfChildren > 0?L"Bus":ControllerHandleCount > 0?L"Device":L"<Unknown>",\r
     ConfigurationStatus?L"YES":L"NO",\r
@@ -715,29 +715,29 @@ DisplayDriverModelHandle (
 \r
   if (ControllerHandleCount == 0) {\r
       ShellPrintHiiEx(\r
-        -1, \r
-        -1, \r
-        NULL, \r
+        -1,\r
+        -1,\r
+        NULL,\r
         STRING_TOKEN (STR_DH_OUTPUT_DRIVER9),\r
-        gShellDriver1HiiHandle, \r
+        gShellDriver1HiiHandle,\r
         L"None"\r
         );\r
   } else {\r
     ShellPrintHiiEx(\r
-      -1, \r
-      -1, \r
-      NULL, \r
+      -1,\r
+      -1,\r
+      NULL,\r
       STRING_TOKEN (STR_DH_OUTPUT_DRIVER9),\r
-      gShellDriver1HiiHandle, \r
+      gShellDriver1HiiHandle,\r
       L""\r
       );\r
     for (HandleIndex = 0; HandleIndex < ControllerHandleCount; HandleIndex++) {\r
       Status = gEfiShellProtocol->GetDeviceName(ControllerHandleBuffer[HandleIndex], EFI_DEVICE_NAME_USE_COMPONENT_NAME|EFI_DEVICE_NAME_USE_DEVICE_PATH, (CHAR8*)Language, &TempStringPointer);\r
 \r
       ShellPrintHiiEx(\r
-        -1, \r
-        -1, \r
-        NULL, \r
+        -1,\r
+        -1,\r
+        NULL,\r
         STRING_TOKEN (STR_DH_OUTPUT_DRIVER9B),\r
         gShellDriver1HiiHandle,\r
         ConvertHandleToHandleIndex(ControllerHandleBuffer[HandleIndex]),\r
@@ -756,9 +756,9 @@ DisplayDriverModelHandle (
           Status = gEfiShellProtocol->GetDeviceName(ChildControllerHandleBuffer[ChildIndex], EFI_DEVICE_NAME_USE_COMPONENT_NAME|EFI_DEVICE_NAME_USE_DEVICE_PATH, (CHAR8*)Language, &TempStringPointer);\r
 \r
           ShellPrintHiiEx(\r
-            -1, \r
-            -1, \r
-            NULL, \r
+            -1,\r
+            -1,\r
+            NULL,\r
             STRING_TOKEN (STR_DH_OUTPUT_DRIVER6C),\r
             gShellDriver1HiiHandle,\r
             ConvertHandleToHandleIndex(ChildControllerHandleBuffer[ChildIndex]),\r
@@ -1109,7 +1109,7 @@ ShellCommandRunDh (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle, L"dh", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle, L"dh", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -1117,7 +1117,7 @@ ShellCommandRunDh (
     }\r
   } else {\r
     if (ShellCommandLineGetCount(Package) > 2) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"dh");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"dh");\r
       ShellCommandLineFreeVarList (Package);\r
       return (SHELL_INVALID_PARAMETER);\r
     }\r
index 1fd7b196e673247cbac6f98b7bea0e5d0e7d4154..c83f564a268b2a9f117d87f2ffc84da61df91428 100644 (file)
@@ -3,7 +3,7 @@
 \r
   (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -118,7 +118,7 @@ ShellCommandRunDisconnect (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle, L"disconnect", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle, L"disconnect", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -127,10 +127,10 @@ ShellCommandRunDisconnect (
   } else {\r
     if (ShellCommandLineGetFlag(Package, L"-r")){\r
       if (ShellCommandLineGetCount(Package) > 1){\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"disconnect");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"disconnect");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else if (ShellCommandLineGetCount(Package) < 1) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDriver1HiiHandle, L"disconnect");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDriver1HiiHandle, L"disconnect");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else {\r
          Status = DisconnectAll ();\r
@@ -151,10 +151,10 @@ ShellCommandRunDisconnect (
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       if (ShellCommandLineGetCount(Package) > 4){\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"disconnect");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"disconnect");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else if (ShellCommandLineGetCount(Package) < 2) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDriver1HiiHandle, L"disconnect");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDriver1HiiHandle, L"disconnect");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else {\r
         //\r
@@ -171,17 +171,17 @@ ShellCommandRunDisconnect (
         Handle3 = Param3!=NULL?ConvertHandleIndexToHandle((UINTN)Intermediate3):NULL;\r
 \r
         if (Param1 != NULL && Handle1 == NULL) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"disconnect", Param1);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"disconnect", Param1);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else if (Param2 != NULL && Handle2 == NULL) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"disconnect", Param2);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"disconnect", Param2);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else if (Param3 != NULL && Handle3 == NULL) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"disconnect", Param3);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"disconnect", Param3);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else if (Handle2 != NULL && EFI_ERROR(gBS->OpenProtocol(Handle2, &gEfiDriverBindingProtocolGuid, NULL, gImageHandle, NULL, EFI_OPEN_PROTOCOL_TEST_PROTOCOL))) {\r
           ASSERT(Param2 != NULL);\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_HANDLE_NOT), gShellDriver1HiiHandle, L"disconnect", ShellStrToUintn(Param2), L"driver handle");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_HANDLE_NOT), gShellDriver1HiiHandle, L"disconnect", ShellStrToUintn(Param2), L"driver handle");\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else {\r
           ASSERT(Param1 != NULL);\r
index 26b785c5634eee95333830c2f2bfe3f06da33efa..45ed6d0e7db1186a77141677f988349a8c0a9100 100644 (file)
@@ -2,7 +2,7 @@
   Main file for Drivers shell Driver1 function.\r
 \r
   (C) Copyright 2012-2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -29,7 +29,7 @@ STATIC CONST SHELL_PARAM_ITEM ParamList[] = {
   @param[in] TheHandle      The handle to get the device path for.\r
 \r
   @retval NULL    An error occured.\r
-  @return         A pointer to the driver path as a string.  The callee must \r
+  @return         A pointer to the driver path as a string.  The callee must\r
                   free this memory.\r
 **/\r
 CHAR16*\r
@@ -302,7 +302,7 @@ ShellCommandRunDrivers (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle, L"drivers", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle, L"drivers", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -310,7 +310,7 @@ ShellCommandRunDrivers (
     }\r
   } else {\r
     if (ShellCommandLineGetCount(Package) > 1) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"drivers");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"drivers");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       if (ShellCommandLineGetFlag(Package, L"-l")){\r
@@ -320,7 +320,7 @@ ShellCommandRunDrivers (
           AsciiSPrint(Language, StrSize(Lang), "%S", Lang);\r
         } else {\r
           ASSERT(Language == NULL);\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDriver1HiiHandle, L"drivers", L"-l");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDriver1HiiHandle, L"drivers", L"-l");\r
           ShellCommandLineFreeVarList (Package);\r
           return (SHELL_INVALID_PARAMETER);\r
         }\r
index 37501d4d3fdcfb5d0abc9864750861e52e1273d1..1bc2974797857877837218c840a8d13690cc16fb 100644 (file)
@@ -2,7 +2,7 @@
   Main file for DrvCfg shell Driver1 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -183,7 +183,7 @@ ConfigToFile(
       STRING_TOKEN(STR_GEN_FILE_OPEN_FAIL),\r
       gShellDriver1HiiHandle,\r
       L"drvcfg",\r
-      FileName, \r
+      FileName,\r
       Status);\r
     return (SHELL_DEVICE_ERROR);\r
   }\r
@@ -199,13 +199,13 @@ ConfigToFile(
 \r
   if (EFI_ERROR(Status) || HiiDatabase == NULL) {\r
     ShellPrintHiiEx(\r
-      -1, \r
-      -1, \r
+      -1,\r
+      -1,\r
       NULL,\r
-      STRING_TOKEN(STR_GEN_PROTOCOL_NF), \r
+      STRING_TOKEN(STR_GEN_PROTOCOL_NF),\r
       gShellDriver1HiiHandle,\r
       L"drvcfg",\r
-      L"EfiHiiDatabaseProtocol", \r
+      L"EfiHiiDatabaseProtocol",\r
       &gEfiHiiDatabaseProtocolGuid);\r
     ShellCloseFile(&FileHandle);\r
     return (SHELL_NOT_FOUND);\r
@@ -215,16 +215,16 @@ ConfigToFile(
   Status = ConvertHandleToHiiHandle(Handle, &HiiHandle, HiiDatabase);\r
   if (EFI_ERROR(Status)) {\r
     ShellPrintHiiEx(\r
-      -1, \r
-      -1, \r
-      NULL, \r
-      STRING_TOKEN(STR_GEN_HANDLE_NOT), \r
+      -1,\r
+      -1,\r
+      NULL,\r
+      STRING_TOKEN(STR_GEN_HANDLE_NOT),\r
       gShellDriver1HiiHandle,\r
       L"drvcfg",\r
-      ConvertHandleToHandleIndex(Handle), \r
+      ConvertHandleToHandleIndex(Handle),\r
       L"Device");\r
     ShellCloseFile(&FileHandle);\r
-    return (SHELL_DEVICE_ERROR);   \r
+    return (SHELL_DEVICE_ERROR);\r
   }\r
 \r
   Status = HiiDatabase->ExportPackageLists(HiiDatabase, HiiHandle, &MainBufferSize, MainBuffer);\r
@@ -240,20 +240,20 @@ ConfigToFile(
 \r
   if (EFI_ERROR(Status)) {\r
     ShellPrintHiiEx(\r
-      -1, \r
+      -1,\r
       -1,\r
       NULL,\r
-      STRING_TOKEN(STR_FILE_WRITE_FAIL), \r
+      STRING_TOKEN(STR_FILE_WRITE_FAIL),\r
       gShellDriver1HiiHandle,\r
       L"drvcfg",\r
       FileName);\r
-    return (SHELL_DEVICE_ERROR);   \r
+    return (SHELL_DEVICE_ERROR);\r
   }\r
   ShellPrintHiiEx(\r
-    -1, \r
+    -1,\r
     -1,\r
     NULL,\r
-    STRING_TOKEN(STR_DRVCFG_COMP), \r
+    STRING_TOKEN(STR_DRVCFG_COMP),\r
     gShellDriver1HiiHandle);\r
 \r
   return (SHELL_SUCCESS);\r
@@ -296,9 +296,9 @@ ConfigFromFile(
       -1,\r
       NULL,\r
       STRING_TOKEN(STR_GEN_FILE_OPEN_FAIL),\r
-      gShellDriver1HiiHandle, \r
+      gShellDriver1HiiHandle,\r
       L"drvcfg",\r
-      FileName, \r
+      FileName,\r
       Status);\r
     return (SHELL_DEVICE_ERROR);\r
   }\r
@@ -314,13 +314,13 @@ ConfigFromFile(
 \r
   if (EFI_ERROR(Status) || HiiDatabase == NULL) {\r
     ShellPrintHiiEx(\r
-      -1, \r
-      -1, \r
+      -1,\r
+      -1,\r
       NULL,\r
-      STRING_TOKEN(STR_GEN_PROTOCOL_NF), \r
-      gShellDriver1HiiHandle, \r
+      STRING_TOKEN(STR_GEN_PROTOCOL_NF),\r
+      gShellDriver1HiiHandle,\r
       L"drvcfg",\r
-      L"EfiHiiDatabaseProtocol", \r
+      L"EfiHiiDatabaseProtocol",\r
       &gEfiHiiDatabaseProtocolGuid);\r
     ShellCloseFile(&FileHandle);\r
     return (SHELL_NOT_FOUND);\r
@@ -330,42 +330,42 @@ ConfigFromFile(
   MainBufferSize = (UINTN)Temp;\r
   if (EFI_ERROR(Status)) {\r
     ShellPrintHiiEx(\r
-      -1, \r
-      -1, \r
-      NULL, \r
-      STRING_TOKEN(STR_FILE_READ_FAIL), \r
+      -1,\r
+      -1,\r
+      NULL,\r
+      STRING_TOKEN(STR_FILE_READ_FAIL),\r
       gShellDriver1HiiHandle,\r
       L"drvcfg",\r
       FileName);\r
 \r
     ShellCloseFile(&FileHandle);\r
-    return (SHELL_DEVICE_ERROR);   \r
+    return (SHELL_DEVICE_ERROR);\r
   }\r
-  MainBuffer = AllocateZeroPool((UINTN)MainBufferSize);  \r
+  MainBuffer = AllocateZeroPool((UINTN)MainBufferSize);\r
   if (EFI_ERROR(Status)) {\r
     ShellPrintHiiEx(\r
-      -1, \r
-      -1, \r
-      NULL, \r
-      STRING_TOKEN(STR_GEN_OUT_MEM), \r
+      -1,\r
+      -1,\r
+      NULL,\r
+      STRING_TOKEN(STR_GEN_OUT_MEM),\r
       gShellDriver1HiiHandle, L"drvcfg");\r
     ShellCloseFile(&FileHandle);\r
-    return (SHELL_DEVICE_ERROR);   \r
+    return (SHELL_DEVICE_ERROR);\r
   }\r
   Status = ShellReadFile(FileHandle, &MainBufferSize, MainBuffer);\r
   if (EFI_ERROR(Status)) {\r
     ShellPrintHiiEx(\r
-      -1, \r
-      -1, \r
-      NULL, \r
-      STRING_TOKEN(STR_FILE_READ_FAIL), \r
-      gShellDriver1HiiHandle, \r
+      -1,\r
+      -1,\r
+      NULL,\r
+      STRING_TOKEN(STR_FILE_READ_FAIL),\r
+      gShellDriver1HiiHandle,\r
       L"drvcfg",\r
       FileName);\r
 \r
     ShellCloseFile(&FileHandle);\r
     SHELL_FREE_NON_NULL(MainBuffer);\r
-    return (SHELL_DEVICE_ERROR);   \r
+    return (SHELL_DEVICE_ERROR);\r
   }\r
 \r
   ShellCloseFile(&FileHandle);\r
@@ -378,28 +378,28 @@ ConfigFromFile(
     Status = ConvertHandleToHiiHandle(Handle, &HiiHandle, HiiDatabase);\r
     if (EFI_ERROR(Status)) {\r
       ShellPrintHiiEx(\r
-        -1, \r
-        -1, \r
-        NULL, \r
-        STRING_TOKEN(STR_GEN_HANDLE_NOT), \r
+        -1,\r
+        -1,\r
+        NULL,\r
+        STRING_TOKEN(STR_GEN_HANDLE_NOT),\r
         gShellDriver1HiiHandle, L"drvcfg",\r
-        ConvertHandleToHandleIndex(Handle), \r
+        ConvertHandleToHandleIndex(Handle),\r
         L"Device");\r
       ShellCloseFile(&FileHandle);\r
-      return (SHELL_DEVICE_ERROR);   \r
+      return (SHELL_DEVICE_ERROR);\r
     }\r
     Status = HiiDatabase->UpdatePackageList(HiiDatabase, HiiHandle, MainBuffer);\r
     if (EFI_ERROR(Status)) {\r
       ShellPrintHiiEx(\r
-        -1, \r
-        -1, \r
-        NULL, \r
+        -1,\r
+        -1,\r
+        NULL,\r
         STRING_TOKEN(STR_GEN_UEFI_FUNC_WARN),\r
         gShellDriver1HiiHandle,\r
         L"drvcfg",\r
-        L"HiiDatabase->UpdatePackageList", \r
+        L"HiiDatabase->UpdatePackageList",\r
         Status);\r
-      return (SHELL_DEVICE_ERROR);   \r
+      return (SHELL_DEVICE_ERROR);\r
     }\r
   } else {\r
     //\r
@@ -421,24 +421,24 @@ ConfigFromFile(
                 //\r
                 TempDevPathString = ConvertDevicePathToText((EFI_DEVICE_PATH_PROTOCOL*)(((CHAR8*)PackageHeader) + sizeof(EFI_HII_PACKAGE_HEADER)), TRUE, TRUE);\r
                 ShellPrintHiiEx(\r
-                  -1, \r
-                  -1, \r
-                  NULL, \r
-                  STRING_TOKEN(STR_DRVCFG_IN_FILE_NF), \r
-                  gShellDriver1HiiHandle, \r
+                  -1,\r
+                  -1,\r
+                  NULL,\r
+                  STRING_TOKEN(STR_DRVCFG_IN_FILE_NF),\r
+                  gShellDriver1HiiHandle,\r
                   TempDevPathString);\r
                 SHELL_FREE_NON_NULL(TempDevPathString);\r
              } else {\r
                 Status = HiiDatabase->UpdatePackageList(HiiDatabase, HiiHandle, PackageListHeader);\r
                 if (EFI_ERROR(Status)) {\r
                   ShellPrintHiiEx(\r
-                    -1, \r
-                    -1, \r
-                    NULL, \r
+                    -1,\r
+                    -1,\r
+                    NULL,\r
                     STRING_TOKEN(STR_GEN_UEFI_FUNC_WARN),\r
-                    gShellDriver1HiiHandle, \r
+                    gShellDriver1HiiHandle,\r
                     L"drvcfg",\r
-                    L"HiiDatabase->UpdatePackageList", \r
+                    L"HiiDatabase->UpdatePackageList",\r
                     Status);\r
                   return (SHELL_DEVICE_ERROR);\r
                 } else {\r
@@ -446,14 +446,14 @@ ConfigFromFile(
                   gBS->LocateDevicePath(&gEfiHiiConfigAccessProtocolGuid, &DevPath, &Handle);\r
                   HandleIndex = ConvertHandleToHandleIndex(Handle);\r
                   ShellPrintHiiEx(\r
-                    -1, \r
-                    -1, \r
-                    NULL, \r
-                    STRING_TOKEN(STR_DRVCFG_DONE_HII), \r
-                    gShellDriver1HiiHandle, \r
+                    -1,\r
+                    -1,\r
+                    NULL,\r
+                    STRING_TOKEN(STR_DRVCFG_DONE_HII),\r
+                    gShellDriver1HiiHandle,\r
                     HandleIndex);\r
                 }\r
-              }              \r
+              }\r
             }\r
         }\r
     }\r
@@ -463,10 +463,10 @@ ConfigFromFile(
 \r
 \r
   ShellPrintHiiEx(\r
-    -1, \r
+    -1,\r
     -1,\r
     NULL,\r
-    STRING_TOKEN(STR_DRVCFG_COMP), \r
+    STRING_TOKEN(STR_DRVCFG_COMP),\r
     gShellDriver1HiiHandle);\r
   return (SHELL_SUCCESS);\r
 }\r
@@ -593,22 +593,22 @@ PreHiiDrvCfg (
       -1,\r
       -1,\r
       NULL,\r
-      STRING_TOKEN (STR_DRVCFG_FORCE_D), \r
-      gShellDriver1HiiHandle, \r
+      STRING_TOKEN (STR_DRVCFG_FORCE_D),\r
+      gShellDriver1HiiHandle,\r
       DefaultType);\r
   } else if (ValidateOptions) {\r
     ShellPrintHiiEx(\r
       -1,\r
       -1,\r
       NULL,\r
-      STRING_TOKEN (STR_DRVCFG_VALIDATE), \r
+      STRING_TOKEN (STR_DRVCFG_VALIDATE),\r
       gShellDriver1HiiHandle);\r
   } else if (SetOptions) {\r
     ShellPrintHiiEx(\r
       -1,\r
       -1,\r
       NULL,\r
-      STRING_TOKEN (STR_DRVCFG_SET), \r
+      STRING_TOKEN (STR_DRVCFG_SET),\r
       gShellDriver1HiiHandle);\r
   }\r
 \r
@@ -619,8 +619,8 @@ PreHiiDrvCfg (
       goto Done;\r
     }\r
     for (\r
-      HandleBuffer = DriverImageHandleBuffer, DriverImageHandleCount = 0 \r
-      ; HandleBuffer != NULL && *HandleBuffer != NULL \r
+      HandleBuffer = DriverImageHandleBuffer, DriverImageHandleCount = 0\r
+      ; HandleBuffer != NULL && *HandleBuffer != NULL\r
       ; HandleBuffer++,DriverImageHandleCount++);\r
   } else {\r
     DriverImageHandleCount = 1;\r
@@ -666,7 +666,7 @@ PreHiiDrvCfg (
       ShellStatus = SHELL_UNSUPPORTED;\r
       continue;\r
     }\r
-    \r
+\r
     BestLanguage = GetBestLanguage (\r
                           DriverConfiguration->SupportedLanguages,\r
                           Iso639Language,\r
@@ -725,7 +725,7 @@ PreHiiDrvCfg (
           -1,\r
           -1,\r
           NULL,\r
-          STRING_TOKEN (STR_DRVCFG_OPTIONS_SET), \r
+          STRING_TOKEN (STR_DRVCFG_OPTIONS_SET),\r
           gShellDriver1HiiHandle);\r
         for (LoopCounter = 0; LoopCounter < HandleCount; LoopCounter++) {\r
           if ((HandleType[LoopCounter] & HR_CONTROLLER_HANDLE) == HR_CONTROLLER_HANDLE) {\r
@@ -742,8 +742,8 @@ PreHiiDrvCfg (
           -1,\r
           -1,\r
           NULL,\r
-          STRING_TOKEN (STR_DRVCFG_NOT_SET), \r
-          gShellDriver1HiiHandle, \r
+          STRING_TOKEN (STR_DRVCFG_NOT_SET),\r
+          gShellDriver1HiiHandle,\r
           Status);\r
       }\r
       continue;\r
@@ -784,7 +784,7 @@ PreHiiDrvCfg (
               -1,\r
               -1,\r
               NULL,\r
-              STRING_TOKEN (STR_DRVCFG_DEF_FORCED), \r
+              STRING_TOKEN (STR_DRVCFG_DEF_FORCED),\r
               gShellDriver1HiiHandle);\r
             ShellCmdDriverConfigurationProcessActionRequired (\r
               DriverImageHandleBuffer[OuterLoopCounter],\r
@@ -797,8 +797,8 @@ PreHiiDrvCfg (
               -1,\r
               -1,\r
               NULL,\r
-              STRING_TOKEN (STR_DRVCFG_FORCE_FAILED), \r
-              gShellDriver1HiiHandle, \r
+              STRING_TOKEN (STR_DRVCFG_FORCE_FAILED),\r
+              gShellDriver1HiiHandle,\r
               Status);\r
            ShellStatus = SHELL_DEVICE_ERROR;\r
          }\r
@@ -814,15 +814,15 @@ PreHiiDrvCfg (
               -1,\r
               -1,\r
               NULL,\r
-              STRING_TOKEN (STR_DRVCFG_OPTIONS_VALID), \r
+              STRING_TOKEN (STR_DRVCFG_OPTIONS_VALID),\r
               gShellDriver1HiiHandle);\r
           } else {\r
             ShellPrintHiiEx(\r
               -1,\r
               -1,\r
               NULL,\r
-              STRING_TOKEN (STR_DRVCFG_OPTIONS_INV), \r
-              gShellDriver1HiiHandle, \r
+              STRING_TOKEN (STR_DRVCFG_OPTIONS_INV),\r
+              gShellDriver1HiiHandle,\r
               Status);\r
             ShellStatus = SHELL_DEVICE_ERROR;\r
           }\r
@@ -853,7 +853,7 @@ PreHiiDrvCfg (
               -1,\r
               -1,\r
               NULL,\r
-              STRING_TOKEN (STR_DRVCFG_OPTIONS_SET), \r
+              STRING_TOKEN (STR_DRVCFG_OPTIONS_SET),\r
               gShellDriver1HiiHandle);\r
 \r
             ShellCmdDriverConfigurationProcessActionRequired (\r
@@ -868,8 +868,8 @@ PreHiiDrvCfg (
               -1,\r
               -1,\r
               NULL,\r
-              STRING_TOKEN (STR_DRVCFG_NOT_SET), \r
-              gShellDriver1HiiHandle, \r
+              STRING_TOKEN (STR_DRVCFG_NOT_SET),\r
+              gShellDriver1HiiHandle,\r
               Status);\r
             ShellStatus = SHELL_DEVICE_ERROR;\r
           }\r
@@ -931,7 +931,7 @@ PreHiiDrvCfg (
               -1,\r
               -1,\r
               NULL,\r
-              STRING_TOKEN (STR_DRVCFG_DEF_FORCED), \r
+              STRING_TOKEN (STR_DRVCFG_DEF_FORCED),\r
               gShellDriver1HiiHandle);\r
 \r
             ShellCmdDriverConfigurationProcessActionRequired (\r
@@ -946,8 +946,8 @@ PreHiiDrvCfg (
               -1,\r
               -1,\r
               NULL,\r
-              STRING_TOKEN (STR_DRVCFG_FORCE_FAILED), \r
-              gShellDriver1HiiHandle, \r
+              STRING_TOKEN (STR_DRVCFG_FORCE_FAILED),\r
+              gShellDriver1HiiHandle,\r
               Status);\r
             ShellStatus = SHELL_DEVICE_ERROR;\r
           }\r
@@ -963,15 +963,15 @@ PreHiiDrvCfg (
               -1,\r
               -1,\r
               NULL,\r
-              STRING_TOKEN (STR_DRVCFG_OPTIONS_VALID), \r
+              STRING_TOKEN (STR_DRVCFG_OPTIONS_VALID),\r
               gShellDriver1HiiHandle);\r
           } else {\r
             ShellPrintHiiEx(\r
               -1,\r
               -1,\r
               NULL,\r
-              STRING_TOKEN (STR_DRVCFG_OPTIONS_INV), \r
-              gShellDriver1HiiHandle, \r
+              STRING_TOKEN (STR_DRVCFG_OPTIONS_INV),\r
+              gShellDriver1HiiHandle,\r
               Status);\r
             ShellStatus = SHELL_DEVICE_ERROR;\r
           }\r
@@ -1004,7 +1004,7 @@ PreHiiDrvCfg (
               -1,\r
               -1,\r
               NULL,\r
-              STRING_TOKEN (STR_DRVCFG_OPTIONS_SET), \r
+              STRING_TOKEN (STR_DRVCFG_OPTIONS_SET),\r
               gShellDriver1HiiHandle);\r
 \r
             ShellCmdDriverConfigurationProcessActionRequired (\r
@@ -1019,8 +1019,8 @@ PreHiiDrvCfg (
               -1,\r
               -1,\r
               NULL,\r
-              STRING_TOKEN (STR_DRVCFG_NOT_SET), \r
-              gShellDriver1HiiHandle, \r
+              STRING_TOKEN (STR_DRVCFG_NOT_SET),\r
+              gShellDriver1HiiHandle,\r
               Status);\r
             ShellStatus = SHELL_DEVICE_ERROR;\r
           }\r
@@ -1081,11 +1081,11 @@ PrintConfigInfoOnAll(
       Found = TRUE;\r
       Index2 = *CurrentHandle == NULL ? 0 : ConvertHandleToHandleIndex(*CurrentHandle);\r
       ShellPrintHiiEx(\r
-        -1, \r
-        -1, \r
-        NULL, \r
-        STRING_TOKEN (STR_DRVCFG_LINE_HII), \r
-        gShellDriver1HiiHandle, \r
+        -1,\r
+        -1,\r
+        NULL,\r
+        STRING_TOKEN (STR_DRVCFG_LINE_HII),\r
+        gShellDriver1HiiHandle,\r
         Index2\r
         );\r
     }\r
@@ -1203,7 +1203,7 @@ ShellCommandRunDrvCfg (
         ASSERT(FALSE);\r
       }\r
     }\r
-  } \r
+  }\r
   if (ShellStatus == SHELL_SUCCESS) {\r
     if (ShellCommandLineGetCount(Package) > 4) {\r
       ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"drvcfg");\r
@@ -1236,24 +1236,24 @@ ShellCommandRunDrvCfg (
     }\r
 \r
     if (InFromFile && EFI_ERROR(ShellFileExists(FileName))) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FIND_FAIL), gShellDriver1HiiHandle, L"drvcfg", FileName);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FIND_FAIL), gShellDriver1HiiHandle, L"drvcfg", FileName);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
-      goto Done;      \r
+      goto Done;\r
     }\r
     if (OutToFile && !EFI_ERROR(ShellFileExists(FileName))) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_EXIST), gShellDriver1HiiHandle, L"drvcfg", FileName);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_EXIST), gShellDriver1HiiHandle, L"drvcfg", FileName);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
-      goto Done;      \r
+      goto Done;\r
     }\r
     if (Force && ForceTypeString == NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDriver1HiiHandle, L"drvcfg", L"-f");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDriver1HiiHandle, L"drvcfg", L"-f");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
       goto Done;\r
-    } \r
+    }\r
     if (Force) {\r
       Status = ShellConvertStringToUint64(ForceTypeString, &Intermediate, FALSE, FALSE);\r
       if (EFI_ERROR(Status)) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM_VAL), gShellDriver1HiiHandle, L"drvcfg", ForceTypeString, L"-f");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM_VAL), gShellDriver1HiiHandle, L"drvcfg", ForceTypeString, L"-f");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         goto Done;\r
       }\r
@@ -1266,7 +1266,7 @@ ShellCommandRunDrvCfg (
     if (HandleIndex1 != NULL && !EFI_ERROR(ShellConvertStringToUint64(HandleIndex1, &Intermediate, TRUE, FALSE))) {\r
       Handle1 = ConvertHandleIndexToHandle((UINTN)Intermediate);\r
       if (Handle1 == NULL || (UINT64)(UINTN)Intermediate != Intermediate) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"drvcfg", HandleIndex1);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"drvcfg", HandleIndex1);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         goto Done;\r
       }\r
@@ -1276,7 +1276,7 @@ ShellCommandRunDrvCfg (
     if (HandleIndex2 != NULL && !EFI_ERROR(ShellConvertStringToUint64(HandleIndex2, &Intermediate, TRUE, FALSE))) {\r
       Handle2 = ConvertHandleIndexToHandle((UINTN)Intermediate);\r
       if (Handle2 == NULL || (UINT64)(UINTN)Intermediate != Intermediate) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"drvcfg", HandleIndex2);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"drvcfg", HandleIndex2);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         goto Done;\r
       }\r
@@ -1286,7 +1286,7 @@ ShellCommandRunDrvCfg (
     if (HandleIndex3 != NULL && !EFI_ERROR(ShellConvertStringToUint64(HandleIndex3, &Intermediate, TRUE, FALSE))) {\r
       Handle3 = ConvertHandleIndexToHandle((UINTN)Intermediate);\r
       if (Handle3 == NULL || (UINT64)(UINTN)Intermediate != Intermediate) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"drvcfg", HandleIndex3);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"drvcfg", HandleIndex3);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         goto Done;\r
       }\r
@@ -1294,42 +1294,42 @@ ShellCommandRunDrvCfg (
 \r
     if ((InFromFile || OutToFile) && (FileName == NULL)) {\r
       if (FileName == NULL) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDriver1HiiHandle, L"drvcfg",  InFromFile?L"-i":L"-o");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDriver1HiiHandle, L"drvcfg",  InFromFile?L"-i":L"-o");\r
       } else {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_HANDLE_REQ), gShellDriver1HiiHandle, L"drvcfg");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_HANDLE_REQ), gShellDriver1HiiHandle, L"drvcfg");\r
       }\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
       goto Done;\r
     }\r
     if (!UseHii && (InFromFile || OutToFile)) {\r
       if (InFromFile) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDriver1HiiHandle, L"drvcfg", L"-i");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDriver1HiiHandle, L"drvcfg", L"-i");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         goto Done;\r
-      } \r
+      }\r
       if (OutToFile) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDriver1HiiHandle, L"drvcfg", L"-o");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellDriver1HiiHandle, L"drvcfg", L"-o");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         goto Done;\r
       }\r
     }\r
     if (Validate && Force) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CONFLICT), gShellDriver1HiiHandle, L"drvcfg", L"-v", L"-f");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CONFLICT), gShellDriver1HiiHandle, L"drvcfg", L"-v", L"-f");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
       goto Done;\r
-    } \r
+    }\r
     if (Validate && Set) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CONFLICT), gShellDriver1HiiHandle, L"drvcfg", L"-v", L"-s");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CONFLICT), gShellDriver1HiiHandle, L"drvcfg", L"-v", L"-s");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
       goto Done;\r
-    } \r
+    }\r
     if (Set && Force) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CONFLICT), gShellDriver1HiiHandle, L"drvcfg", L"-s", L"-f");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CONFLICT), gShellDriver1HiiHandle, L"drvcfg", L"-s", L"-f");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
       goto Done;\r
     }\r
     if (OutToFile && InFromFile) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CONFLICT), gShellDriver1HiiHandle, L"drvcfg", L"-i", L"-o");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CONFLICT), gShellDriver1HiiHandle, L"drvcfg", L"-i", L"-o");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
       goto Done;\r
     }\r
@@ -1365,11 +1365,11 @@ ShellCommandRunDrvCfg (
       } else {\r
         if (!EFI_ERROR(gBS->OpenProtocol(Handle1, &gEfiHiiConfigAccessProtocolGuid, NULL, gImageHandle, NULL, EFI_OPEN_PROTOCOL_TEST_PROTOCOL))) {\r
           ShellPrintHiiEx(\r
-            -1, \r
-            -1, \r
-            NULL, \r
-            STRING_TOKEN (STR_DRVCFG_LINE_HII), \r
-            gShellDriver1HiiHandle, \r
+            -1,\r
+            -1,\r
+            NULL,\r
+            STRING_TOKEN (STR_DRVCFG_LINE_HII),\r
+            gShellDriver1HiiHandle,\r
             ConvertHandleToHandleIndex(Handle1)\r
             );\r
           goto Done;\r
@@ -1399,7 +1399,7 @@ ShellCommandRunDrvCfg (
         -1,\r
         NULL,\r
         STRING_TOKEN (STR_DRVCFG_NOT_SUPPORT),\r
-        gShellDriver1HiiHandle, \r
+        gShellDriver1HiiHandle,\r
         ConvertHandleToHandleIndex(Handle1)\r
         );\r
     }\r
index cc1099f68f0e055ef22e0f421c3fdd259f9c0345..b42e8c7bb2ccff58f39e6b96cd8667d555e1fac6 100644 (file)
@@ -2,7 +2,7 @@
   Main file for DrvDiag shell Driver1 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -101,10 +101,10 @@ DoDiagnostics (
   } else {\r
     DriverHandleList = GetHandleListByProtocolList(DiagGuidList);\r
     if (DriverHandleList == NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROTOCOL_NF), gShellDriver1HiiHandle, L"drvdiag", L"gEfiDriverDiagnosticsProtocolGuid", &gEfiDriverDiagnosticsProtocolGuid);  \r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROTOCOL_NF), gShellDriver1HiiHandle, L"drvdiag", L"gEfiDriverDiagnostics2ProtocolGuid", &gEfiDriverDiagnostics2ProtocolGuid);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROTOCOL_NF), gShellDriver1HiiHandle, L"drvdiag", L"gEfiDriverDiagnosticsProtocolGuid", &gEfiDriverDiagnosticsProtocolGuid);\r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROTOCOL_NF), gShellDriver1HiiHandle, L"drvdiag", L"gEfiDriverDiagnostics2ProtocolGuid", &gEfiDriverDiagnostics2ProtocolGuid);\r
       return (EFI_NOT_FOUND);\r
-    } \r
+    }\r
     for (Walker = DriverHandleList ; Walker != NULL && *Walker != NULL ; DriverHandleListCount++, Walker++);\r
   }\r
 \r
@@ -150,7 +150,7 @@ DoDiagnostics (
     }\r
     if (ControllerHandle == NULL) {\r
       PARSE_HANDLE_DATABASE_DEVICES(DriverHandleList[DriverHandleListLoop], &ControllerHandleListCount, &ControllerHandleList);\r
-    } \r
+    }\r
     if (ControllerHandleListCount == 0) {\r
       if (Mode == TestModeList) {\r
         ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_DRVDIAG_DRIVER_NO_HANDLES), gShellDriver1HiiHandle);\r
@@ -166,7 +166,7 @@ DoDiagnostics (
         if (AllChilds) {\r
           ASSERT(ChildHandleList == NULL);\r
           PARSE_HANDLE_DATABASE_MANAGED_CHILDREN(\r
-            DriverHandleList[DriverHandleListLoop], \r
+            DriverHandleList[DriverHandleListLoop],\r
             ControllerHandleList[ControllerHandleListLoop],\r
             &ChildHandleListCount,\r
             &ChildHandleList);\r
@@ -202,7 +202,7 @@ DoDiagnostics (
                   &OutBuffer);\r
                 FreePool(Language);\r
               }\r
-            } \r
+            }\r
             if (!Found && (Lang == NULL||(Lang!=NULL&&(Lang[2]!='-')))){\r
               Status = gBS->OpenProtocol(\r
                 DriverHandleList[DriverHandleListLoop],\r
@@ -357,7 +357,7 @@ ShellCommandRunDrvDiag (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle, L"drvdiag", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle, L"drvdiag", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -375,7 +375,7 @@ ShellCommandRunDrvDiag (
       //\r
       // error for too many parameters\r
       //\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"drvdiag");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"drvdiag");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if ((ShellCommandLineGetFlag(Package, L"-s"))\r
             || (ShellCommandLineGetFlag(Package, L"-e"))\r
@@ -403,7 +403,7 @@ ShellCommandRunDrvDiag (
     Lang = ShellCommandLineGetValue(Package, L"-l");\r
     if (ShellCommandLineGetFlag(Package, L"-l") && Lang == NULL) {\r
       ASSERT(Language == NULL);\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDriver1HiiHandle, L"drvdiag",  L"-l");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellDriver1HiiHandle, L"drvdiag",  L"-l");\r
       ShellCommandLineFreeVarList (Package);\r
       return (SHELL_INVALID_PARAMETER);\r
     } else if (Lang != NULL) {\r
@@ -438,8 +438,8 @@ ShellCommandRunDrvDiag (
       Mode,\r
       Language,\r
       ShellCommandLineGetFlag(Package, L"-c"),\r
-      Handle1, \r
-      Handle2, \r
+      Handle1,\r
+      Handle2,\r
       Handle3\r
       );\r
 \r
index 2a1748c514da96f69227fb77d5693c9cfd120ce1..7c817a47c8223eb45fdfff6fd537c757e5cf76cf 100644 (file)
@@ -2,7 +2,7 @@
   Main file for OpenInfo shell Driver1 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -126,7 +126,7 @@ TraverseHandleDatabase (
               OpenInfo[OpenInfoIndex].OpenCount,\r
               OpenTypeString,\r
               Name\r
-             );            \r
+             );\r
           }\r
         }\r
         FreePool (OpenInfo);\r
@@ -176,7 +176,7 @@ ShellCommandRunOpenInfo (
   Status = ShellCommandLineParse (EmptyParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle, L"openinfo", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle, L"openinfo", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -187,16 +187,16 @@ ShellCommandRunOpenInfo (
       //\r
       // error for too many parameters\r
       //\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"openinfo");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"openinfo");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (ShellCommandLineGetCount(Package) == 0) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDriver1HiiHandle, L"openinfo");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDriver1HiiHandle, L"openinfo");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       Param1 = ShellCommandLineGetRawValue(Package, 1);\r
       Status = ShellConvertStringToUint64(Param1, &Intermediate, TRUE, FALSE);\r
       if (EFI_ERROR(Status) || Param1 == NULL || ConvertHandleIndexToHandle((UINTN)Intermediate) == NULL){\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"openinfo", Param1);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"openinfo", Param1);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else {\r
         TheHandle = ConvertHandleIndexToHandle((UINTN)Intermediate);\r
@@ -206,7 +206,7 @@ ShellCommandRunOpenInfo (
         Status = TraverseHandleDatabase (TheHandle);\r
         if (!EFI_ERROR(Status)) {\r
         } else {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"openinfo", Param1);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"openinfo", Param1);\r
           ShellStatus = SHELL_NOT_FOUND;\r
         }\r
       }\r
index d2ae8e82719dfcb5edc7a82b19e4651b1561a3d6..67de000c6f0eb5d4af145cab6dd9f9ea7019945a 100644 (file)
@@ -1,9 +1,9 @@
 /** @file\r
   Main file for Reconnect shell Driver1 function.\r
 \r
-  Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>  \r
+  (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
   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
@@ -29,11 +29,11 @@ VOID
 ConnectAllConsoles (\r
   VOID\r
   )\r
-{  \r
+{\r
   ShellConnectFromDevPaths(L"ConInDev");\r
   ShellConnectFromDevPaths(L"ConOutDev");\r
   ShellConnectFromDevPaths(L"ErrOutDev");\r
-  \r
+\r
   ShellConnectFromDevPaths(L"ErrOut");\r
   ShellConnectFromDevPaths(L"ConIn");\r
   ShellConnectFromDevPaths(L"ConOut");\r
@@ -60,7 +60,7 @@ ShellCommandRunReconnect (
 \r
   gInReconnect = TRUE;\r
   ShellStatus = SHELL_SUCCESS;\r
-  \r
+\r
   //\r
   // initialize the shell lib (we must be in non-auto-init...)\r
   //\r
@@ -90,7 +90,7 @@ ShellCommandRunReconnect (
       }\r
       ShellStatus = ShellCommandRunConnect(ImageHandle, SystemTable);\r
     }\r
-  }  \r
+  }\r
 \r
   gInReconnect = FALSE;\r
 \r
index 0120e4e0652a08a0719168fe3384ec41f3c1dea0..d382021e95aef9d0ab30420d52447a03354041fc 100644 (file)
@@ -2,7 +2,7 @@
 //\r
 // (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP<BR>\r
 // (C) Copyright 2012-2015 Hewlett-Packard Development Company, L.P.<BR>\r
-// Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
 // 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
 "       CTRL         - The handle number of the UEFI device\r\n"\r
 "       TYPE         - The device type:\r\n"\r
 "                        [R] - Root Controller\r\n"\r
-"                        [B] - Bus Controller\r\n" \r
+"                        [B] - Bus Controller\r\n"\r
 "                        [D] - Device Controller\r\n"\r
 "       CFG          - A managing driver supports the Driver Configuration\r\n"\r
 "                      Protocol.  Yes if 'Y' or 'X'; No if 'N' or '-'.\r\n"\r
 "  6. If only a single handle is specified and the handle has an\r\n"\r
 "     EFI_DRIVER_BINDING_PROTOCOL on it, then the handle is assumed to be a\r\n"\r
 "     driver handle. Otherwise, it is assumed to be a device handle.\r\n"\r
-"  7. If no parameters are specified, then the command will attempt to bind\r\n" \r
+"  7. If no parameters are specified, then the command will attempt to bind\r\n"\r
 "     all proper drivers to all devices without recursion. Each connection\r\n"\r
 "     status will be displayed.\r\n"\r
 "  8. Output redirection is not supported for 'connect -r' usage.\r\n"\r
index b5f085a750eb56e04754c0db6b51dd23c9b8d23e..64cb60ea1f0cb97abb7028bec496d4c43434fb43 100644 (file)
@@ -2,7 +2,7 @@
   Main file for Unload shell Driver1 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -31,11 +31,11 @@ DumpLoadedImageProtocolInfo (
   CHAR16 *TheString;\r
 \r
   TheString = GetProtocolInformationDump(TheHandle, &gEfiLoadedImageProtocolGuid, TRUE);\r
-  \r
+\r
   ShellPrintEx(-1, -1, L"%s", TheString);\r
 \r
   SHELL_FREE_NON_NULL(TheString);\r
-  \r
+\r
   return (EFI_SUCCESS);\r
 }\r
 \r
@@ -86,7 +86,7 @@ ShellCommandRunUnload (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle,L"unload", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellDriver1HiiHandle,L"unload", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -97,10 +97,10 @@ ShellCommandRunUnload (
       //\r
       // error for too many parameters\r
       //\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"unload");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellDriver1HiiHandle, L"unload");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (ShellCommandLineGetCount(Package) < 2) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDriver1HiiHandle, L"unload");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellDriver1HiiHandle, L"unload");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       Param1    = ShellCommandLineGetRawValue(Package, 1);\r
@@ -110,14 +110,14 @@ ShellCommandRunUnload (
       }\r
 \r
       if (EFI_ERROR(Status) || Param1 == NULL || TheHandle == NULL){\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"unload", Param1);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_INV_HANDLE), gShellDriver1HiiHandle, L"unload", Param1);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else {\r
         ASSERT(TheHandle != NULL);\r
         if (ShellCommandLineGetFlag(Package, L"-v") || ShellCommandLineGetFlag(Package, L"-verbose")) {\r
           DumpLoadedImageProtocolInfo(TheHandle);\r
         }\r
-        \r
+\r
         if (!ShellCommandLineGetFlag(Package, L"-n")) {\r
           Status = ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN(STR_UNLOAD_CONF), gShellDriver1HiiHandle, (UINTN)TheHandle);\r
           Status = ShellPromptForResponse(ShellPromptResponseTypeYesNo, NULL, (VOID**)&Resp);\r
index dc1b6223e7b66a7101437aff74843e112b920307..06bcf358fa9485ed5060da1671cd05b4f507edc1 100644 (file)
@@ -1,7 +1,7 @@
 ##  @file\r
 #  Provides shell install1 functions\r
 #\r
-#  Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved. <BR>\r
+#  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved. <BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -48,4 +48,4 @@
   gEfiShellPkgTokenSpaceGuid.PcdShellProfileMask ## CONSUMES\r
 \r
 [Guids]\r
-  gShellInstall1HiiGuid                         ## UNDEFINED \r
+  gShellInstall1HiiGuid                         ## UNDEFINED\r
index 9824977149193ebab07c8c1420e80a991340c67b..8da07825f6e42bcb408c3aafbd53d610a899f700 100644 (file)
@@ -89,13 +89,13 @@ ShellCommandRunEndFor (
   if (!Found) {\r
     CurrentScriptFile = ShellCommandGetCurrentScriptFile();\r
     ShellPrintHiiEx(\r
-      -1, \r
-      -1, \r
-      NULL, \r
-      STRING_TOKEN (STR_SYNTAX_NO_MATCHING), \r
-      gShellLevel1HiiHandle, \r
-      L"For", \r
-      L"EndFor", \r
+      -1,\r
+      -1,\r
+      NULL,\r
+      STRING_TOKEN (STR_SYNTAX_NO_MATCHING),\r
+      gShellLevel1HiiHandle,\r
+      L"For",\r
+      L"EndFor",\r
       CurrentScriptFile!=NULL\r
         && CurrentScriptFile->CurrentCommand!=NULL\r
           ? CurrentScriptFile->CurrentCommand->Line:0);\r
@@ -339,13 +339,13 @@ ShellCommandRunFor (
     //\r
     if (!MoveToTag(GetNextNode, L"endfor", L"for", NULL, CurrentScriptFile, TRUE, TRUE, FALSE)) {\r
       ShellPrintHiiEx(\r
-        -1, \r
-        -1, \r
-        NULL, \r
-        STRING_TOKEN (STR_SYNTAX_NO_MATCHING), \r
-        gShellLevel1HiiHandle, \r
-        L"EndFor", \r
-        L"For", \r
+        -1,\r
+        -1,\r
+        NULL,\r
+        STRING_TOKEN (STR_SYNTAX_NO_MATCHING),\r
+        gShellLevel1HiiHandle,\r
+        L"EndFor",\r
+        L"For",\r
         CurrentScriptFile->CurrentCommand->Line);\r
       return (SHELL_DEVICE_ERROR);\r
     }\r
@@ -467,12 +467,12 @@ ShellCommandRunFor (
         ArgSetWalker            = ArgSet;\r
         if (ArgSetWalker[0] != L'(') {\r
           ShellPrintHiiEx(\r
-            -1, \r
-            -1, \r
-            NULL, \r
-            STRING_TOKEN (STR_GEN_PROBLEM_SCRIPT), \r
-            gShellLevel1HiiHandle, \r
-            ArgSet, \r
+            -1,\r
+            -1,\r
+            NULL,\r
+            STRING_TOKEN (STR_GEN_PROBLEM_SCRIPT),\r
+            gShellLevel1HiiHandle,\r
+            ArgSet,\r
             CurrentScriptFile->CurrentCommand->Line);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else {\r
@@ -490,11 +490,11 @@ ShellCommandRunFor (
           }\r
           if (TempSpot == NULL) {\r
             ShellPrintHiiEx(\r
-              -1, \r
-              -1, \r
-              NULL, \r
-              STRING_TOKEN (STR_GEN_PROBLEM_SCRIPT), \r
-              gShellLevel1HiiHandle, \r
+              -1,\r
+              -1,\r
+              NULL,\r
+              STRING_TOKEN (STR_GEN_PROBLEM_SCRIPT),\r
+              gShellLevel1HiiHandle,\r
               CurrentScriptFile->CurrentCommand->Line);\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           } else {\r
@@ -505,12 +505,12 @@ ShellCommandRunFor (
             }\r
             if (!ShellIsValidForNumber(ArgSetWalker)) {\r
               ShellPrintHiiEx(\r
-                -1, \r
-                -1, \r
-                NULL, \r
-                STRING_TOKEN (STR_GEN_PROBLEM_SCRIPT), \r
-                gShellLevel1HiiHandle, \r
-                ArgSet, \r
+                -1,\r
+                -1,\r
+                NULL,\r
+                STRING_TOKEN (STR_GEN_PROBLEM_SCRIPT),\r
+                gShellLevel1HiiHandle,\r
+                ArgSet,\r
                 CurrentScriptFile->CurrentCommand->Line);\r
               ShellStatus = SHELL_INVALID_PARAMETER;\r
             } else {\r
@@ -525,12 +525,12 @@ ShellCommandRunFor (
               }\r
               if (ArgSetWalker == NULL || *ArgSetWalker == CHAR_NULL || !ShellIsValidForNumber(ArgSetWalker)){\r
                 ShellPrintHiiEx(\r
-                  -1, \r
-                  -1, \r
-                  NULL, \r
-                  STRING_TOKEN (STR_GEN_PROBLEM_SCRIPT), \r
-                  gShellLevel1HiiHandle, \r
-                  ArgSet, \r
+                  -1,\r
+                  -1,\r
+                  NULL,\r
+                  STRING_TOKEN (STR_GEN_PROBLEM_SCRIPT),\r
+                  gShellLevel1HiiHandle,\r
+                  ArgSet,\r
                   CurrentScriptFile->CurrentCommand->Line);\r
                 ShellStatus = SHELL_INVALID_PARAMETER;\r
               } else {\r
@@ -552,12 +552,12 @@ ShellCommandRunFor (
                 if (ArgSetWalker != NULL && *ArgSetWalker != CHAR_NULL) {\r
                   if (ArgSetWalker == NULL || *ArgSetWalker == CHAR_NULL || !ShellIsValidForNumber(ArgSetWalker)){\r
                     ShellPrintHiiEx(\r
-                      -1, \r
-                      -1, \r
-                      NULL, \r
-                      STRING_TOKEN (STR_GEN_PROBLEM_SCRIPT), \r
-                      gShellLevel1HiiHandle, \r
-                      ArgSet, \r
+                      -1,\r
+                      -1,\r
+                      NULL,\r
+                      STRING_TOKEN (STR_GEN_PROBLEM_SCRIPT),\r
+                      gShellLevel1HiiHandle,\r
+                      ArgSet,\r
                       CurrentScriptFile->CurrentCommand->Line);\r
                     ShellStatus = SHELL_INVALID_PARAMETER;\r
                   } else {\r
@@ -572,18 +572,18 @@ ShellCommandRunFor (
 \r
                       if (StrStr(ArgSetWalker, L" ") != NULL) {\r
                         ShellPrintHiiEx(\r
-                          -1, \r
-                          -1, \r
-                          NULL, \r
-                          STRING_TOKEN (STR_GEN_PROBLEM_SCRIPT), \r
-                          gShellLevel1HiiHandle, \r
-                          ArgSet, \r
+                          -1,\r
+                          -1,\r
+                          NULL,\r
+                          STRING_TOKEN (STR_GEN_PROBLEM_SCRIPT),\r
+                          gShellLevel1HiiHandle,\r
+                          ArgSet,\r
                           CurrentScriptFile->CurrentCommand->Line);\r
                         ShellStatus = SHELL_INVALID_PARAMETER;\r
                       }\r
                     }\r
                   }\r
-                  \r
+\r
                 }\r
               }\r
             }\r
@@ -602,13 +602,13 @@ ShellCommandRunFor (
       }\r
     } else {\r
       ShellPrintHiiEx(\r
-        -1, \r
-        -1, \r
-        NULL, \r
-        STRING_TOKEN (STR_GEN_PROBLEM_SCRIPT), \r
-        gShellLevel1HiiHandle, \r
-        ArgSet, \r
-        CurrentScriptFile!=NULL \r
+        -1,\r
+        -1,\r
+        NULL,\r
+        STRING_TOKEN (STR_GEN_PROBLEM_SCRIPT),\r
+        gShellLevel1HiiHandle,\r
+        ArgSet,\r
+        CurrentScriptFile!=NULL\r
           && CurrentScriptFile->CurrentCommand!=NULL\r
           ? CurrentScriptFile->CurrentCommand->Line:0);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
@@ -659,14 +659,14 @@ ShellCommandRunFor (
         //\r
         if (!MoveToTag(GetNextNode, L"endfor", L"for", NULL, CurrentScriptFile, TRUE, FALSE, FALSE)) {\r
           ShellPrintHiiEx(\r
-            -1, \r
-            -1, \r
-            NULL, \r
-            STRING_TOKEN (STR_SYNTAX_NO_MATCHING), \r
-            gShellLevel1HiiHandle, \r
-            L"EndFor", \r
-            L"For", \r
-            CurrentScriptFile!=NULL \r
+            -1,\r
+            -1,\r
+            NULL,\r
+            STRING_TOKEN (STR_SYNTAX_NO_MATCHING),\r
+            gShellLevel1HiiHandle,\r
+            L"EndFor",\r
+            L"For",\r
+            CurrentScriptFile!=NULL\r
               && CurrentScriptFile->CurrentCommand!=NULL\r
               ? CurrentScriptFile->CurrentCommand->Line:0);\r
           ShellStatus = SHELL_DEVICE_ERROR;\r
@@ -721,14 +721,14 @@ ShellCommandRunFor (
         //\r
         if (!MoveToTag(GetNextNode, L"endfor", L"for", NULL, CurrentScriptFile, TRUE, FALSE, FALSE)) {\r
           ShellPrintHiiEx(\r
-            -1, \r
-            -1, \r
-            NULL, \r
-            STRING_TOKEN (STR_SYNTAX_NO_MATCHING), \r
-            gShellLevel1HiiHandle, \r
-            L"EndFor", \r
-            L"For", \r
-            CurrentScriptFile!=NULL \r
+            -1,\r
+            -1,\r
+            NULL,\r
+            STRING_TOKEN (STR_SYNTAX_NO_MATCHING),\r
+            gShellLevel1HiiHandle,\r
+            L"EndFor",\r
+            L"For",\r
+            CurrentScriptFile!=NULL\r
               && CurrentScriptFile->CurrentCommand!=NULL\r
               ? CurrentScriptFile->CurrentCommand->Line:0);\r
           ShellStatus = SHELL_DEVICE_ERROR;\r
index 88e290daa7055f1d6d43b83be9233deba065625f..04083bbc1c91484166e7c67e4d6bafd13316dce0 100644 (file)
@@ -2,7 +2,7 @@
   Main file for goto shell level 1 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -83,14 +83,14 @@ ShellCommandRunGoto (
       if (!MoveToTag(GetNextNode, L"endfor", L"for", CompareString, ShellCommandGetCurrentScriptFile(), FALSE, FALSE, TRUE)) {\r
         CurrentScriptFile = ShellCommandGetCurrentScriptFile();\r
         ShellPrintHiiEx(\r
-          -1, \r
-          -1, \r
-          NULL, \r
-          STRING_TOKEN (STR_SYNTAX_NO_MATCHING), \r
-          gShellLevel1HiiHandle, \r
-          CompareString, \r
-          L"Goto", \r
-          CurrentScriptFile!=NULL \r
+          -1,\r
+          -1,\r
+          NULL,\r
+          STRING_TOKEN (STR_SYNTAX_NO_MATCHING),\r
+          gShellLevel1HiiHandle,\r
+          CompareString,\r
+          L"Goto",\r
+          CurrentScriptFile!=NULL\r
             && CurrentScriptFile->CurrentCommand!=NULL\r
             ? CurrentScriptFile->CurrentCommand->Line:0);\r
         ShellStatus = SHELL_NOT_FOUND;\r
index 35c5ca6835817f942e6044d72c7641c0eb278558..14380601cacede8fe80b72ec8ae3f013aaa8e559 100644 (file)
@@ -2,7 +2,7 @@
   Main file for If and else shell level 1 function.\r
 \r
   (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -335,7 +335,7 @@ TestOperation (
 /**\r
   Process an if statement and determine if its is valid or not.\r
 \r
-  @param[in, out] PassingState     Opon entry, the current state.  Upon exit, \r
+  @param[in, out] PassingState     Opon entry, the current state.  Upon exit,\r
                                    the new state.\r
   @param[in] StartParameterNumber  The number of the first parameter of\r
                                    this statement.\r
@@ -346,7 +346,7 @@ TestOperation (
   @param[in] ForceStringCompare    TRUE for all string based, FALSE otherwise.\r
 \r
   @retval EFI_INVALID_PARAMETER   A parameter was invalid.\r
-  @retval EFI_SUCCESS             The operation was successful.                                  \r
+  @retval EFI_SUCCESS             The operation was successful.\r
 **/\r
 EFI_STATUS\r
 ProcessStatement (\r
@@ -649,9 +649,9 @@ ProcessStatement (
   Break up the next part of the if statement (until the next 'and', 'or', or 'then').\r
 \r
   @param[in] ParameterNumber      The current parameter number.\r
-  @param[out] EndParameter        Upon successful return, will point to the \r
+  @param[out] EndParameter        Upon successful return, will point to the\r
                                   parameter to start the next iteration with.\r
-  @param[out] EndTag              Upon successful return, will point to the \r
+  @param[out] EndTag              Upon successful return, will point to the\r
                                   type that was found at the end of this statement.\r
 \r
   @retval TRUE    A valid statement was found.\r
@@ -837,12 +837,12 @@ ShellCommandRunIf (
   ASSERT_EFI_ERROR(Status);\r
 \r
   if (!gEfiShellProtocol->BatchIsActive()) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_NO_SCRIPT), gShellLevel1HiiHandle, L"if");  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_NO_SCRIPT), gShellLevel1HiiHandle, L"if");\r
     return (SHELL_UNSUPPORTED);\r
   }\r
 \r
   if (gEfiShellParametersProtocol->Argc < 3) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel1HiiHandle, L"if");  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel1HiiHandle, L"if");\r
     return (SHELL_INVALID_PARAMETER);\r
   }\r
 \r
@@ -852,14 +852,14 @@ ShellCommandRunIf (
   CurrentScriptFile = ShellCommandGetCurrentScriptFile();\r
   if (!MoveToTag(GetNextNode, L"endif", L"if", NULL, CurrentScriptFile, TRUE, TRUE, FALSE)) {\r
     ShellPrintHiiEx(\r
-      -1, \r
-      -1, \r
-      NULL, \r
-      STRING_TOKEN (STR_SYNTAX_NO_MATCHING), \r
-      gShellLevel1HiiHandle, \r
-      L"EndIf", \r
-      L"If", \r
-      CurrentScriptFile!=NULL \r
+      -1,\r
+      -1,\r
+      NULL,\r
+      STRING_TOKEN (STR_SYNTAX_NO_MATCHING),\r
+      gShellLevel1HiiHandle,\r
+      L"EndIf",\r
+      L"If",\r
+      CurrentScriptFile!=NULL\r
         && CurrentScriptFile->CurrentCommand!=NULL\r
         ? CurrentScriptFile->CurrentCommand->Line:0);\r
     return (SHELL_DEVICE_ERROR);\r
@@ -920,12 +920,12 @@ ShellCommandRunIf (
       // we are at the then\r
       //\r
       if (CurrentParameter+1 != gEfiShellParametersProtocol->Argc) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_TEXT_AFTER_THEN), gShellLevel1HiiHandle, L"if");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_TEXT_AFTER_THEN), gShellLevel1HiiHandle, L"if");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else {\r
         Status = PerformResultOperation(CurrentValue);\r
         if (EFI_ERROR(Status)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SYNTAX_AFTER_BAD), gShellLevel1HiiHandle, L"if", gEfiShellParametersProtocol->Argv[CurrentParameter]);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SYNTAX_AFTER_BAD), gShellLevel1HiiHandle, L"if", gEfiShellParametersProtocol->Argv[CurrentParameter]);\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         }\r
       }\r
@@ -937,14 +937,14 @@ ShellCommandRunIf (
       if (!BuildNextStatement(CurrentParameter, &EndParameter, &Ending)) {\r
         CurrentScriptFile = ShellCommandGetCurrentScriptFile();\r
         ShellPrintHiiEx(\r
-          -1, \r
-          -1, \r
-          NULL, \r
-          STRING_TOKEN (STR_SYNTAX_NO_MATCHING), \r
-          gShellLevel1HiiHandle, \r
-          L"Then", \r
+          -1,\r
+          -1,\r
+          NULL,\r
+          STRING_TOKEN (STR_SYNTAX_NO_MATCHING),\r
+          gShellLevel1HiiHandle,\r
+          L"Then",\r
           L"If",\r
-          CurrentScriptFile!=NULL \r
+          CurrentScriptFile!=NULL\r
             && CurrentScriptFile->CurrentCommand!=NULL\r
             ? CurrentScriptFile->CurrentCommand->Line:0);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
@@ -963,7 +963,7 @@ ShellCommandRunIf (
           if ((Ending == EndTagOr && CurrentValue) || (Ending == EndTagAnd && !CurrentValue)) {\r
             Status = PerformResultOperation(CurrentValue);\r
             if (EFI_ERROR(Status)) {\r
-              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SYNTAX_AFTER_BAD), gShellLevel1HiiHandle, L"if", gEfiShellParametersProtocol->Argv[CurrentParameter]);  \r
+              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SYNTAX_AFTER_BAD), gShellLevel1HiiHandle, L"if", gEfiShellParametersProtocol->Argv[CurrentParameter]);\r
               ShellStatus = SHELL_INVALID_PARAMETER;\r
             }\r
             break;\r
@@ -1004,7 +1004,7 @@ ShellCommandRunElse (
   ASSERT_EFI_ERROR (Status);\r
 \r
   if (gEfiShellParametersProtocol->Argc > 1) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel1HiiHandle, L"if");  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel1HiiHandle, L"if");\r
     return (SHELL_INVALID_PARAMETER);\r
   }\r
 \r
@@ -1017,28 +1017,28 @@ ShellCommandRunElse (
 \r
   if (!MoveToTag(GetPreviousNode, L"if", L"endif", NULL, CurrentScriptFile, FALSE, TRUE, FALSE)) {\r
     ShellPrintHiiEx(\r
-      -1, \r
-      -1, \r
-      NULL, \r
-      STRING_TOKEN (STR_SYNTAX_NO_MATCHING), \r
-      gShellLevel1HiiHandle, \r
-      L"If", \r
-      L"Else", \r
-      CurrentScriptFile!=NULL \r
+      -1,\r
+      -1,\r
+      NULL,\r
+      STRING_TOKEN (STR_SYNTAX_NO_MATCHING),\r
+      gShellLevel1HiiHandle,\r
+      L"If",\r
+      L"Else",\r
+      CurrentScriptFile!=NULL\r
         && CurrentScriptFile->CurrentCommand!=NULL\r
         ? CurrentScriptFile->CurrentCommand->Line:0);\r
     return (SHELL_DEVICE_ERROR);\r
   }\r
   if (!MoveToTag(GetPreviousNode, L"if", L"else", NULL, CurrentScriptFile, FALSE, TRUE, FALSE)) {\r
     ShellPrintHiiEx(\r
-      -1, \r
-      -1, \r
-      NULL, \r
-      STRING_TOKEN (STR_SYNTAX_NO_MATCHING), \r
-      gShellLevel1HiiHandle, \r
-      L"If", \r
-      L"Else", \r
-      CurrentScriptFile!=NULL \r
+      -1,\r
+      -1,\r
+      NULL,\r
+      STRING_TOKEN (STR_SYNTAX_NO_MATCHING),\r
+      gShellLevel1HiiHandle,\r
+      L"If",\r
+      L"Else",\r
+      CurrentScriptFile!=NULL\r
         && CurrentScriptFile->CurrentCommand!=NULL\r
         ? CurrentScriptFile->CurrentCommand->Line:0);\r
     return (SHELL_DEVICE_ERROR);\r
@@ -1046,14 +1046,14 @@ ShellCommandRunElse (
 \r
   if (!MoveToTag(GetNextNode, L"endif", L"if", NULL, CurrentScriptFile, FALSE, FALSE, FALSE)) {\r
     ShellPrintHiiEx(\r
-      -1, \r
-      -1, \r
-      NULL, \r
-      STRING_TOKEN (STR_SYNTAX_NO_MATCHING), \r
-      gShellLevel1HiiHandle, \r
-      L"EndIf", \r
-      "Else", \r
-      CurrentScriptFile!=NULL \r
+      -1,\r
+      -1,\r
+      NULL,\r
+      STRING_TOKEN (STR_SYNTAX_NO_MATCHING),\r
+      gShellLevel1HiiHandle,\r
+      L"EndIf",\r
+      "Else",\r
+      CurrentScriptFile!=NULL\r
         && CurrentScriptFile->CurrentCommand!=NULL\r
         ? CurrentScriptFile->CurrentCommand->Line:0);\r
     return (SHELL_DEVICE_ERROR);\r
@@ -1082,7 +1082,7 @@ ShellCommandRunEndIf (
   ASSERT_EFI_ERROR (Status);\r
 \r
   if (gEfiShellParametersProtocol->Argc > 1) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel1HiiHandle, L"if");  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel1HiiHandle, L"if");\r
     return (SHELL_INVALID_PARAMETER);\r
   }\r
 \r
@@ -1094,14 +1094,14 @@ ShellCommandRunEndIf (
   CurrentScriptFile = ShellCommandGetCurrentScriptFile();\r
   if (!MoveToTag(GetPreviousNode, L"if", L"endif", NULL, CurrentScriptFile, FALSE, TRUE, FALSE)) {\r
     ShellPrintHiiEx(\r
-      -1, \r
-      -1, \r
-      NULL, \r
-      STRING_TOKEN (STR_SYNTAX_NO_MATCHING), \r
-      gShellLevel1HiiHandle, \r
-      L"If", \r
-      L"EndIf", \r
-      CurrentScriptFile!=NULL \r
+      -1,\r
+      -1,\r
+      NULL,\r
+      STRING_TOKEN (STR_SYNTAX_NO_MATCHING),\r
+      gShellLevel1HiiHandle,\r
+      L"If",\r
+      L"EndIf",\r
+      CurrentScriptFile!=NULL\r
         && CurrentScriptFile->CurrentCommand!=NULL\r
         ? CurrentScriptFile->CurrentCommand->Line:0);\r
     return (SHELL_DEVICE_ERROR);\r
index 08c54f8f7a15e7254721de47d8de2f73a372ceec..a6f59f668cebd14a99a56b0cad403277de862a62 100644 (file)
@@ -2,7 +2,7 @@
   Main file for Shift shell level 1 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -36,7 +36,7 @@ ShellCommandRunShift (
   ASSERT_EFI_ERROR(Status);\r
 \r
   if (!gEfiShellProtocol->BatchIsActive()) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_NO_SCRIPT), gShellLevel1HiiHandle, L"shift");  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_NO_SCRIPT), gShellLevel1HiiHandle, L"shift");\r
     return (SHELL_UNSUPPORTED);\r
   }\r
 \r
@@ -44,7 +44,7 @@ ShellCommandRunShift (
   ASSERT(CurrentScriptFile != NULL);\r
 \r
   if (CurrentScriptFile->Argc < 2) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel1HiiHandle, L"shift");  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel1HiiHandle, L"shift");\r
     return (SHELL_UNSUPPORTED);\r
   }\r
 \r
index 476b1bc47f6ed4b17aae2e6bea596b426c0bfaa3..4306d7fca70ba6d525c3055f80cd2e475b2133d9 100644 (file)
@@ -2,7 +2,7 @@
   Main file for stall shell level 1 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -51,7 +51,7 @@ ShellCommandRunStall (
   Status = ShellCommandLineParse (EmptyParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel1HiiHandle, L"stall", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel1HiiHandle, L"stall", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -59,20 +59,20 @@ ShellCommandRunStall (
     }\r
   } else {\r
     if (ShellCommandLineGetRawValue(Package, 2) != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel1HiiHandle, L"stall");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel1HiiHandle, L"stall");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (ShellCommandLineGetRawValue(Package, 1) == NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel1HiiHandle, L"stall");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel1HiiHandle, L"stall");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       Status = ShellConvertStringToUint64(ShellCommandLineGetRawValue(Package, 1), &Intermediate, FALSE, FALSE);\r
       if (EFI_ERROR(Status) || ((UINT64)(UINTN)(Intermediate)) != Intermediate) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel1HiiHandle, L"stall", ShellCommandLineGetRawValue(Package, 1));  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel1HiiHandle, L"stall", ShellCommandLineGetRawValue(Package, 1));\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else {\r
         Status = gBS->Stall((UINTN)Intermediate);\r
         if (EFI_ERROR(Status)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_STALL_FAILED), gShellLevel1HiiHandle, L"stall");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_STALL_FAILED), gShellLevel1HiiHandle, L"stall");\r
           ShellStatus = SHELL_DEVICE_ERROR;\r
         }\r
       }\r
index 2b8a104da323e01308029e2f6fc0dd162281bda3..c6c2e9787e56b7df888454320312667caca86fb9 100644 (file)
@@ -2,7 +2,7 @@
   Main file for NULL named library for level 1 shell command functions.\r
 \r
   (C) Copyright 2013 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -103,18 +103,18 @@ ShellLevel1CommandsLibDestructor (
   It functions so that count starts at 1 and it increases or decreases when it\r
   hits the specified tags.  when it hits zero the location has been found.\r
 \r
-  DecrementerTag and IncrementerTag are used to get around for/endfor and \r
+  DecrementerTag and IncrementerTag are used to get around for/endfor and\r
   similar paired types where the entire middle should be ignored.\r
 \r
   If label is used it will be used instead of the count.\r
 \r
-  @param[in] Function          The function to use to enumerate through the \r
+  @param[in] Function          The function to use to enumerate through the\r
                                list.  Normally GetNextNode or GetPreviousNode.\r
   @param[in] DecrementerTag    The tag to decrement the count at.\r
   @param[in] IncrementerTag    The tag to increment the count at.\r
   @param[in] Label             A label to look for.\r
   @param[in, out] ScriptFile   The pointer to the current script file structure.\r
-  @param[in] MovePast          TRUE makes function return 1 past the found \r
+  @param[in] MovePast          TRUE makes function return 1 past the found\r
                                location.\r
   @param[in] FindOnly          TRUE to not change the ScriptFile.\r
   @param[in] CommandNode       The pointer to the Node to test.\r
@@ -227,21 +227,21 @@ TestNodeForMove (
   It functions so that count starts at 1 and it increases or decreases when it\r
   hits the specified tags.  when it hits zero the location has been found.\r
 \r
-  DecrementerTag and IncrementerTag are used to get around for/endfor and \r
+  DecrementerTag and IncrementerTag are used to get around for/endfor and\r
   similar paired types where the entire middle should be ignored.\r
 \r
   If label is used it will be used instead of the count.\r
 \r
-  @param[in] Function          The function to use to enumerate through the \r
+  @param[in] Function          The function to use to enumerate through the\r
                                list.  Normally GetNextNode or GetPreviousNode.\r
   @param[in] DecrementerTag    The tag to decrement the count at.\r
   @param[in] IncrementerTag    The tag to increment the count at.\r
   @param[in] Label             A label to look for.\r
   @param[in, out] ScriptFile   The pointer to the current script file structure.\r
-  @param[in] MovePast          TRUE makes function return 1 past the found \r
+  @param[in] MovePast          TRUE makes function return 1 past the found\r
                                location.\r
   @param[in] FindOnly          TRUE to not change the ScriptFile.\r
-  @param[in] WrapAroundScript  TRUE to wrap end-to-begining or vise versa in \r
+  @param[in] WrapAroundScript  TRUE to wrap end-to-begining or vise versa in\r
                                searching.\r
 **/\r
 BOOLEAN\r
index 04892a6f013eb00d1bd36f1b74bbba0236425fbb..9106082ab7136f6891f3d749ab7d1fee553680fc 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Main file for NULL named library for level 1 shell command functions.\r
 \r
-  Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -176,21 +176,21 @@ LIST_ENTRY *
   It functions so that count starts at 1 and it increases or decreases when it\r
   hits the specified tags.  when it hits zero the location has been found.\r
 \r
-  DecrementerTag and IncrementerTag are used to get around for/endfor and \r
+  DecrementerTag and IncrementerTag are used to get around for/endfor and\r
   similar paired types where the entire middle should be ignored.\r
 \r
   If label is used it will be used instead of the count.\r
 \r
-  @param[in] Function          The function to use to enumerate through the \r
+  @param[in] Function          The function to use to enumerate through the\r
                                list.  Normally GetNextNode or GetPreviousNode.\r
   @param[in] DecrementerTag    The tag to decrement the count at.\r
   @param[in] IncrementerTag    The tag to increment the count at.\r
   @param[in] Label             A label to look for.\r
   @param[in, out] ScriptFile   The pointer to the current script file structure.\r
-  @param[in] MovePast          TRUE makes function return 1 past the found \r
+  @param[in] MovePast          TRUE makes function return 1 past the found\r
                                location.\r
   @param[in] FindOnly          TRUE to not change the ScriptFile.\r
-  @param[in] WrapAroundScript  TRUE to wrap end-to-begining or vise versa in \r
+  @param[in] WrapAroundScript  TRUE to wrap end-to-begining or vise versa in\r
                                searching.\r
 **/\r
 BOOLEAN\r
index 30d643431f8d9f152177978f92fe3d5c345ba483..03a99591aabed9cb30267cd960531a096811cfa5 100644 (file)
@@ -2,7 +2,7 @@
   Main file for attrib shell level 2 function.\r
 \r
   (C) Copyright 2014-2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -70,7 +70,7 @@ ShellCommandRunAttrib (
   Status = ShellCommandLineParse (AttribParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"attrib", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"attrib", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -133,7 +133,7 @@ ShellCommandRunAttrib (
           ASSERT(ListOfFiles == NULL);\r
           Status = ShellOpenFileMetaArg((CHAR16*)FileName, EFI_FILE_MODE_READ, &ListOfFiles);\r
           if (EFI_ERROR(Status)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellLevel2HiiHandle, L"attrib", ShellCommandLineGetRawValue(Package, ParamNumberCount));  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellLevel2HiiHandle, L"attrib", ShellCommandLineGetRawValue(Package, ParamNumberCount));\r
             ShellStatus = SHELL_NOT_FOUND;\r
           } else {\r
             for (FileNode = (EFI_SHELL_FILE_INFO*)GetFirstNode(&ListOfFiles->Link)\r
@@ -153,7 +153,7 @@ ShellCommandRunAttrib (
                 FileNode->Info->Attribute&EFI_FILE_READ_ONLY? L'R':L' ',\r
                 FileNode->FileName\r
                );\r
-               \r
+\r
               if (ShellGetExecutionBreakFlag()) {\r
                   ShellStatus = SHELL_ABORTED;\r
                   break;\r
@@ -162,7 +162,7 @@ ShellCommandRunAttrib (
             Status = ShellCloseFileMetaArg(&ListOfFiles);\r
             ListOfFiles = NULL;\r
             if (EFI_ERROR(Status)) {\r
-              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_CLOSE_FAIL), gShellLevel2HiiHandle, L"attrib", ShellCommandLineGetRawValue(Package, ParamNumberCount));  \r
+              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_CLOSE_FAIL), gShellLevel2HiiHandle, L"attrib", ShellCommandLineGetRawValue(Package, ParamNumberCount));\r
               ShellStatus = SHELL_NOT_FOUND;\r
             }\r
           } // for loop for handling wildcard filenames\r
@@ -171,7 +171,7 @@ ShellCommandRunAttrib (
         //\r
         // fail as we have conflcting params.\r
         //\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CON), gShellLevel2HiiHandle, L"attrib");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CON), gShellLevel2HiiHandle, L"attrib");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else {\r
         //\r
@@ -188,7 +188,7 @@ ShellCommandRunAttrib (
             // make sure we are not failing on the first one we do... if yes that's an error...\r
             //\r
             if (ParamNumberCount == 1) {\r
-              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel2HiiHandle, L"attrib");  \r
+              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel2HiiHandle, L"attrib");\r
               ShellStatus = SHELL_INVALID_PARAMETER;\r
             }\r
             break;\r
@@ -205,7 +205,7 @@ ShellCommandRunAttrib (
           ASSERT(ListOfFiles == NULL);\r
           Status = ShellOpenFileMetaArg((CHAR16*)FileName, EFI_FILE_MODE_READ, &ListOfFiles);\r
           if (EFI_ERROR(Status)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellLevel2HiiHandle, L"attrib", ShellCommandLineGetRawValue(Package, ParamNumberCount));  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellLevel2HiiHandle, L"attrib", ShellCommandLineGetRawValue(Package, ParamNumberCount));\r
             ShellStatus = SHELL_NOT_FOUND;\r
           } else {\r
             for (FileNode = (EFI_SHELL_FILE_INFO*)GetFirstNode(&ListOfFiles->Link)\r
@@ -231,7 +231,7 @@ ShellCommandRunAttrib (
                 //\r
                 Status = ShellSetFileInfo(FileNode->Handle, FileInfo);\r
                 if (EFI_ERROR(Status)) {\r
-                  ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_AD), gShellLevel2HiiHandle, L"attrib", ShellCommandLineGetRawValue(Package, ParamNumberCount));  \r
+                  ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_AD), gShellLevel2HiiHandle, L"attrib", ShellCommandLineGetRawValue(Package, ParamNumberCount));\r
                   ShellStatus = SHELL_ACCESS_DENIED;\r
                 }\r
               }\r
@@ -247,7 +247,7 @@ ShellCommandRunAttrib (
               //\r
               Status = ShellSetFileInfo(FileNode->Handle, FileInfo);\r
               if (EFI_ERROR(Status)) {;\r
-                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_AD), gShellLevel2HiiHandle, L"attrib", ShellCommandLineGetRawValue(Package, ParamNumberCount));  \r
+                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_AD), gShellLevel2HiiHandle, L"attrib", ShellCommandLineGetRawValue(Package, ParamNumberCount));\r
                 ShellStatus = SHELL_ACCESS_DENIED;\r
               }\r
 \r
@@ -256,7 +256,7 @@ ShellCommandRunAttrib (
             Status = ShellCloseFileMetaArg(&ListOfFiles);\r
             ListOfFiles = NULL;\r
             if (EFI_ERROR(Status)) {\r
-              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_CLOSE_FAIL), gShellLevel2HiiHandle, L"attrib", ShellCommandLineGetRawValue(Package, ParamNumberCount));  \r
+              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_CLOSE_FAIL), gShellLevel2HiiHandle, L"attrib", ShellCommandLineGetRawValue(Package, ParamNumberCount));\r
               ShellStatus = SHELL_NOT_FOUND;\r
             }\r
           } // for loop for handling wildcard filenames\r
index d5dc9804d4dc33c148bf575e0dc0ee00d6e9f2bb..79dd2096f49b3a4765078f9d2730a924c1468db9 100644 (file)
@@ -217,7 +217,7 @@ ShellCommandRunCd (
   Status = ShellCommandLineParse (EmptyParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"cd", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"cd", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -231,7 +231,7 @@ ShellCommandRunCd (
   if (ShellCommandLineGetFlag(Package, L"-?")) {\r
     ASSERT(FALSE);\r
   } else if (ShellCommandLineGetRawValue(Package, 2) != NULL) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"cd");  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"cd");\r
     ShellStatus = SHELL_INVALID_PARAMETER;\r
   } else {\r
     //\r
index ae7528ddcf6ba6bfba37bb59a4b0f109fc33ea47..1c488246641e1cccfc88bb0f739341c356915522 100644 (file)
@@ -132,7 +132,7 @@ CopySingleFile(
   if (ShellIsDirectory(Source) == EFI_SUCCESS) {\r
     Status = ShellCreateDirectory(Dest, &DestHandle);\r
     if (EFI_ERROR(Status)) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_CP_DEST_DIR_FAIL), gShellLevel2HiiHandle, CmdName, Dest);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_CP_DEST_DIR_FAIL), gShellLevel2HiiHandle, CmdName, Dest);\r
       return (SHELL_ACCESS_DENIED);\r
     }\r
 \r
@@ -161,7 +161,7 @@ CopySingleFile(
     //\r
     Status = ShellOpenFileByName(Dest, &DestHandle, EFI_FILE_MODE_READ|EFI_FILE_MODE_WRITE|EFI_FILE_MODE_CREATE, 0);\r
     if (EFI_ERROR(Status)) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_CP_DEST_OPEN_FAIL), gShellLevel2HiiHandle, CmdName, Dest);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_CP_DEST_OPEN_FAIL), gShellLevel2HiiHandle, CmdName, Dest);\r
       return (SHELL_ACCESS_DENIED);\r
     }\r
 \r
@@ -220,7 +220,7 @@ CopySingleFile(
       //not enough space on destination directory to copy file\r
       //\r
       SHELL_FREE_NON_NULL(DestVolumeInfo);\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_CPY_FAIL), gShellLevel2HiiHandle, CmdName);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_CPY_FAIL), gShellLevel2HiiHandle, CmdName);\r
       return(SHELL_VOLUME_FULL);\r
     } else {\r
       //\r
@@ -237,19 +237,19 @@ CopySingleFile(
           Status = ShellWriteFile(DestHandle, &ReadSize, Buffer);\r
           if (EFI_ERROR(Status)) {\r
             ShellStatus = (SHELL_STATUS) (Status & (~MAX_BIT));\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_CPY_WRITE_ERROR), gShellLevel2HiiHandle, CmdName, Dest);   \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_CPY_WRITE_ERROR), gShellLevel2HiiHandle, CmdName, Dest);\r
             break;\r
           }\r
         } else {\r
           ShellStatus = (SHELL_STATUS) (Status & (~MAX_BIT));\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_CPY_READ_ERROR), gShellLevel2HiiHandle, CmdName, Source);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_CPY_READ_ERROR), gShellLevel2HiiHandle, CmdName, Source);\r
           break;\r
         }\r
       }\r
     }\r
     SHELL_FREE_NON_NULL(DestVolumeInfo);\r
   }\r
-  \r
+\r
   //\r
   // close files\r
   //\r
@@ -324,7 +324,7 @@ ValidateAndCopyFiles(
   ASSERT(FileList != NULL);\r
   ASSERT(DestDir  != NULL);\r
 \r
-  \r
+\r
   Status = ShellLevel2StripQuotes (DestDir, &CleanFilePathStr);\r
   if (EFI_ERROR (Status)) {\r
     if (Status == EFI_OUT_OF_RESOURCES) {\r
@@ -333,7 +333,7 @@ ValidateAndCopyFiles(
       return SHELL_INVALID_PARAMETER;\r
     }\r
   }\r
-  \r
+\r
   ASSERT (CleanFilePathStr != NULL);\r
 \r
   //\r
@@ -343,7 +343,7 @@ ValidateAndCopyFiles(
     //\r
     // Error for destination not a directory\r
     //\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NOT_DIR), gShellLevel2HiiHandle, L"cp", CleanFilePathStr); \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NOT_DIR), gShellLevel2HiiHandle, L"cp", CleanFilePathStr);\r
     FreePool (CleanFilePathStr);\r
     return (SHELL_INVALID_PARAMETER);\r
   }\r
@@ -369,7 +369,7 @@ ValidateAndCopyFiles(
     // Make sure got -r if required\r
     //\r
     if (!RecursiveMode && !EFI_ERROR(ShellIsDirectory(Node->FullName))) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_CP_DIR_REQ), gShellLevel2HiiHandle, L"cp");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_CP_DIR_REQ), gShellLevel2HiiHandle, L"cp");\r
       FreePool (CleanFilePathStr);\r
       return (SHELL_INVALID_PARAMETER);\r
     }\r
@@ -381,7 +381,7 @@ ValidateAndCopyFiles(
       //\r
       // Error for destination not a directory\r
       //\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NOT_DIR), gShellLevel2HiiHandle, L"cp", CleanFilePathStr);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NOT_DIR), gShellLevel2HiiHandle, L"cp", CleanFilePathStr);\r
       FreePool (CleanFilePathStr);\r
       return (SHELL_INVALID_PARAMETER);\r
     }\r
@@ -430,7 +430,7 @@ ValidateAndCopyFiles(
           StrCpyS(DestPath, PathSize / sizeof(CHAR16), Cwd);\r
           StrCatS(DestPath, PathSize / sizeof(CHAR16), L"\\");\r
         } else {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_DIR_NF), gShellLevel2HiiHandle, L"cp", CleanFilePathStr);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_DIR_NF), gShellLevel2HiiHandle, L"cp", CleanFilePathStr);\r
           FreePool (CleanFilePathStr);\r
           return (SHELL_INVALID_PARAMETER);\r
         }\r
@@ -447,7 +447,7 @@ ValidateAndCopyFiles(
       //\r
       // we have multiple files or a directory in the DestDir\r
       //\r
-      \r
+\r
       //\r
       // Check for leading slash\r
       //\r
@@ -459,7 +459,7 @@ ValidateAndCopyFiles(
           StrCpyS(DestPath, PathSize/sizeof(CHAR16), Cwd);\r
           StrCatS(DestPath, PathSize/sizeof(CHAR16), L"\\");\r
         } else {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_DIR_NF), gShellLevel2HiiHandle, L"cp",  CleanFilePathStr); \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_DIR_NF), gShellLevel2HiiHandle, L"cp",  CleanFilePathStr);\r
           FreePool(CleanFilePathStr);\r
           return (SHELL_INVALID_PARAMETER);\r
         }\r
@@ -471,7 +471,7 @@ ValidateAndCopyFiles(
           StrCpyS(DestPath, PathSize/sizeof(CHAR16), Cwd);\r
           StrCatS(DestPath, PathSize/sizeof(CHAR16), L"\\");\r
         } else {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_DIR_NF), gShellLevel2HiiHandle, L"cp", CleanFilePathStr);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_DIR_NF), gShellLevel2HiiHandle, L"cp", CleanFilePathStr);\r
           FreePool(CleanFilePathStr);\r
           return (SHELL_INVALID_PARAMETER);\r
         }\r
@@ -498,12 +498,12 @@ ValidateAndCopyFiles(
         StrCatS(DestPath, PathSize/sizeof(CHAR16), Node->FileName);\r
       }\r
     }\r
-    \r
+\r
     //\r
     // Make sure the path exists\r
     //\r
     if (EFI_ERROR(VerifyIntermediateDirectories(DestPath))) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_CP_DIR_WNF), gShellLevel2HiiHandle, L"cp", DestPath);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_CP_DIR_WNF), gShellLevel2HiiHandle, L"cp", DestPath);\r
       ShellStatus = SHELL_DEVICE_ERROR;\r
       break;\r
     }\r
@@ -512,12 +512,12 @@ ValidateAndCopyFiles(
       && !EFI_ERROR(ShellIsDirectory(DestPath))\r
       && StrniCmp(Node->FullName, DestPath, StrLen(DestPath)) == 0\r
       ){\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_CP_SD_PARENT), gShellLevel2HiiHandle, L"cp");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_CP_SD_PARENT), gShellLevel2HiiHandle, L"cp");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
       break;\r
     }\r
     if (StringNoCaseCompare(&Node->FullName, &DestPath) == 0) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_CP_SD_SAME), gShellLevel2HiiHandle, L"cp");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_CP_SD_SAME), gShellLevel2HiiHandle, L"cp");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
       break;\r
     }\r
@@ -525,7 +525,7 @@ ValidateAndCopyFiles(
     if ((StrniCmp(Node->FullName, DestPath, StrLen(Node->FullName)) == 0)\r
       && (DestPath[StrLen(Node->FullName)] == CHAR_NULL || DestPath[StrLen(Node->FullName)] == L'\\')\r
       ) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_CP_SD_SAME), gShellLevel2HiiHandle, L"cp");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_CP_SD_SAME), gShellLevel2HiiHandle, L"cp");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
       break;\r
     }\r
@@ -561,7 +561,7 @@ ValidateAndCopyFiles(
 }\r
 \r
 /**\r
-  Validate and if successful copy all the files from the list into \r
+  Validate and if successful copy all the files from the list into\r
   destination directory.\r
 \r
   @param[in] FileList       The list of files to copy.\r
@@ -591,7 +591,7 @@ ProcessValidateAndCopyFiles(
 \r
   ShellOpenFileMetaArg((CHAR16*)DestDir, EFI_FILE_MODE_READ, &List);\r
   if (List != NULL && List->Link.ForwardLink != List->Link.BackLink) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_MARG_ERROR), gShellLevel2HiiHandle, L"cp", DestDir);  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_MARG_ERROR), gShellLevel2HiiHandle, L"cp", DestDir);\r
     ShellStatus = SHELL_INVALID_PARAMETER;\r
     ShellCloseFileMetaArg(&List);\r
   } else if (List != NULL) {\r
@@ -604,7 +604,7 @@ ProcessValidateAndCopyFiles(
     if ((FileInfo->Attribute & EFI_FILE_READ_ONLY) == 0) {\r
       ShellStatus = ValidateAndCopyFiles(FileList, FullName, SilentMode, RecursiveMode, NULL);\r
     } else {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_CP_DEST_ERROR), gShellLevel2HiiHandle, L"cp");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_CP_DEST_ERROR), gShellLevel2HiiHandle, L"cp");\r
       ShellStatus = SHELL_ACCESS_DENIED;\r
     }\r
   } else {\r
@@ -668,7 +668,7 @@ ShellCommandRunCp (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"cp", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"cp", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -698,7 +698,7 @@ ShellCommandRunCp (
         //\r
         // we have insufficient parameters\r
         //\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel2HiiHandle, L"cp");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel2HiiHandle, L"cp");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         break;\r
       case 2:\r
@@ -707,12 +707,12 @@ ShellCommandRunCp (
         //\r
         Cwd = ShellGetCurrentDir(NULL);\r
         if (Cwd == NULL){\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_CWD), gShellLevel2HiiHandle, L"cp");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_CWD), gShellLevel2HiiHandle, L"cp");\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else {\r
           Status = ShellOpenFileMetaArg((CHAR16*)ShellCommandLineGetRawValue(Package, 1), EFI_FILE_MODE_WRITE|EFI_FILE_MODE_READ, &FileList);\r
           if (FileList == NULL || IsListEmpty(&FileList->Link) || EFI_ERROR(Status)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_NF), gShellLevel2HiiHandle, L"cp", ShellCommandLineGetRawValue(Package, 1));  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_NF), gShellLevel2HiiHandle, L"cp", ShellCommandLineGetRawValue(Package, 1));\r
             ShellStatus = SHELL_NOT_FOUND;\r
           } else  {\r
             FullCwd = AllocateZeroPool(StrSize(Cwd) + sizeof(CHAR16));\r
@@ -738,7 +738,7 @@ ShellCommandRunCp (
           }\r
           Status = ShellOpenFileMetaArg((CHAR16*)ShellCommandLineGetRawValue(Package, LoopCounter), EFI_FILE_MODE_WRITE|EFI_FILE_MODE_READ, &FileList);\r
           if (EFI_ERROR(Status) || FileList == NULL || IsListEmpty(&FileList->Link)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_NF), gShellLevel2HiiHandle, L"cp", ShellCommandLineGetRawValue(Package, LoopCounter));  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_NF), gShellLevel2HiiHandle, L"cp", ShellCommandLineGetRawValue(Package, LoopCounter));\r
             ShellStatus = SHELL_NOT_FOUND;\r
           }\r
         }\r
@@ -752,7 +752,7 @@ ShellCommandRunCp (
             ShellStatus = ProcessValidateAndCopyFiles(FileList, PathCleanUpDirectories((CHAR16*)ShellCommandLineGetRawValue(Package, ParamCount)), SilentMode, RecursiveMode);\r
             Status = ShellCloseFileMetaArg(&FileList);\r
             if (EFI_ERROR(Status) && ShellStatus == SHELL_SUCCESS) {\r
-              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_FILE), gShellLevel2HiiHandle, L"cp", ShellCommandLineGetRawValue(Package, ParamCount), ShellStatus|MAX_BIT);  \r
+              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_FILE), gShellLevel2HiiHandle, L"cp", ShellCommandLineGetRawValue(Package, ParamCount), ShellStatus|MAX_BIT);\r
               ShellStatus = SHELL_ACCESS_DENIED;\r
             }\r
           }\r
index 322d510eacd9cf9a255167d4e6d32575470b2d78..151df00071556db9da5c0273f14323c305d83834 100644 (file)
@@ -2,7 +2,7 @@
   Main file for attrib shell level 2 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -212,7 +212,7 @@ ShellCommandRunLoad (
   Status = ShellCommandLineParse (LoadParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"load", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"load", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -228,7 +228,7 @@ ShellCommandRunLoad (
       //\r
       // we didnt get a single file to load parameter\r
       //\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel2HiiHandle, L"load");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel2HiiHandle, L"load");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       for ( ParamCount = 1\r
@@ -259,7 +259,7 @@ ShellCommandRunLoad (
           //\r
           // no files found.\r
           //\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_NF), gShellLevel2HiiHandle, L"load", (CHAR16*)ShellCommandLineGetRawValue(Package, ParamCount));  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_NF), gShellLevel2HiiHandle, L"load", (CHAR16*)ShellCommandLineGetRawValue(Package, ParamCount));\r
           ShellStatus = SHELL_NOT_FOUND;\r
         }\r
       } // for loop for params\r
index 7d2e15f5206b334ff79bedde2871f5f558335836..3c8ec781356f4477b0cea5aa712dc3b3c1803d81 100644 (file)
@@ -2,7 +2,7 @@
   Main file for ls shell level 2 function.\r
 \r
   (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -154,10 +154,10 @@ PrintSfoVolumeInfoTableEntry(
 **/\r
 VOID\r
 PrintFileInformation(\r
-  IN CONST BOOLEAN              Sfo, \r
-  IN CONST EFI_SHELL_FILE_INFO  *TheNode, \r
-  IN UINT64                     *Files, \r
-  IN UINT64                     *Size, \r
+  IN CONST BOOLEAN              Sfo,\r
+  IN CONST EFI_SHELL_FILE_INFO  *TheNode,\r
+  IN UINT64                     *Files,\r
+  IN UINT64                     *Size,\r
   IN UINT64                     *Dirs\r
   )\r
 {\r
@@ -300,8 +300,8 @@ PrintNonSfoHeader(
 **/\r
 VOID\r
 PrintNonSfoFooter(\r
-  IN UINT64                     Files, \r
-  IN UINT64                     Size, \r
+  IN UINT64                     Files,\r
+  IN UINT64                     Size,\r
   IN UINT64                     Dirs\r
   )\r
 {\r
@@ -370,7 +370,7 @@ FileTimeToLocalTime (
   //\r
   HourNumberOfTempMinute = TempMinute / 60;\r
   if(TempMinute < 0) {\r
-    HourNumberOfTempMinute --; \r
+    HourNumberOfTempMinute --;\r
   }\r
   TempHour = Time->Hour + HourNumberOfTempMinute;\r
   Time->Minute = (UINT8)(TempMinute - 60 * HourNumberOfTempMinute);\r
@@ -582,7 +582,7 @@ PrintLsOutput(
     }\r
     CorrectedPath = StrnCatGrow(&CorrectedPath, &LongestPath, L"*",     0);\r
     Status = ShellOpenFileMetaArg((CHAR16*)CorrectedPath, EFI_FILE_MODE_READ, &ListHead);\r
-   \r
+\r
     if (!EFI_ERROR(Status)) {\r
       for ( Node = (EFI_SHELL_FILE_INFO *)GetFirstNode(&ListHead->Link)\r
           ; !IsNull(&ListHead->Link, &Node->Link) && ShellStatus == SHELL_SUCCESS\r
@@ -609,7 +609,7 @@ PrintLsOutput(
             &FoundOne,\r
             Count,\r
             TimeZone);\r
-            \r
+\r
           //\r
           // Since it's running recursively, we have to break immediately when returned SHELL_ABORTED\r
           //\r
@@ -698,7 +698,7 @@ ShellCommandRunLs (
   Status = ShellCommandLineParse (LsParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"ls", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"ls", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -713,7 +713,7 @@ ShellCommandRunLs (
     }\r
 \r
     if (ShellCommandLineGetCount(Package) > 2) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"ls");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"ls");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       //\r
@@ -751,7 +751,7 @@ ShellCommandRunLs (
               Count++;\r
               continue;\r
             default:\r
-              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ATTRIBUTE), gShellLevel2HiiHandle, L"ls", ShellCommandLineGetValue(Package, L"-a"));  \r
+              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ATTRIBUTE), gShellLevel2HiiHandle, L"ls", ShellCommandLineGetValue(Package, L"-a"));\r
               ShellStatus = SHELL_INVALID_PARAMETER;\r
               break;\r
           } // switch\r
@@ -772,7 +772,7 @@ ShellCommandRunLs (
           CurDir = gEfiShellProtocol->GetCurDir(NULL);\r
           if (CurDir == NULL) {\r
             ShellStatus = SHELL_NOT_FOUND;\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_CWD), gShellLevel2HiiHandle, L"ls");  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_CWD), gShellLevel2HiiHandle, L"ls");\r
           }\r
           //\r
           // Copy to the 2 strings for starting path and file search string\r
@@ -789,7 +789,7 @@ ShellCommandRunLs (
             // If we got something and it doesnt have a fully qualified path, then we needed to have a CWD.\r
             //\r
             ShellStatus = SHELL_NOT_FOUND;\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_CWD), gShellLevel2HiiHandle, L"ls");  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_CWD), gShellLevel2HiiHandle, L"ls");\r
           } else {\r
             //\r
             // We got a valid fully qualified path or we have a CWD\r
@@ -809,7 +809,7 @@ ShellCommandRunLs (
                 ShellCommandLineFreeVarList (Package);\r
                 return SHELL_OUT_OF_RESOURCES;\r
             }\r
-               \r
+\r
             if  (ShellIsDirectory(PathName) == EFI_SUCCESS) {\r
               //\r
               // is listing ends with a directory, then we list all files in that directory\r
@@ -832,7 +832,7 @@ ShellCommandRunLs (
         }\r
         Status = gRT->GetTime(&TheTime, NULL);\r
         if (EFI_ERROR(Status)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_UEFI_FUNC_WARN), gShellLevel2HiiHandle, L"ls", L"gRT->GetTime", Status);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_UEFI_FUNC_WARN), gShellLevel2HiiHandle, L"ls", L"gRT->GetTime", Status);\r
           TheTime.TimeZone = EFI_UNSPECIFIED_TIMEZONE;\r
         }\r
 \r
@@ -848,15 +848,15 @@ ShellCommandRunLs (
             TheTime.TimeZone\r
            );\r
           if (ShellStatus == SHELL_NOT_FOUND) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_LS_FILE_NOT_FOUND), gShellLevel2HiiHandle, L"ls", FullPath);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_LS_FILE_NOT_FOUND), gShellLevel2HiiHandle, L"ls", FullPath);\r
           } else if (ShellStatus == SHELL_INVALID_PARAMETER) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel2HiiHandle, L"ls", FullPath);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel2HiiHandle, L"ls", FullPath);\r
           } else if (ShellStatus == SHELL_ABORTED) {\r
             //\r
             // Ignore aborting.\r
             //\r
           } else if (ShellStatus != SHELL_SUCCESS) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel2HiiHandle, L"ls", FullPath);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel2HiiHandle, L"ls", FullPath);\r
           }\r
         }\r
       }\r
index 9166ca2205ca2631a62c81aaf20505233c2ebdbc..9cc6014805bee56be9fa827c21aecf57ec984508 100644 (file)
@@ -4,7 +4,7 @@
   Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
   (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
-  \r
+\r
   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
@@ -56,12 +56,12 @@ IsNumberLetterOnly(
 \r
   @param[in] List         The list to seatch in.\r
   @param[in] MetaTarget   The item to search for. MetaMatching supported.\r
-  @param[out] FullName    Optional pointer to an allocated buffer containing \r
+  @param[out] FullName    Optional pointer to an allocated buffer containing\r
                           the match.\r
   @param[in] Meta         TRUE to use MetaMatching.\r
   @param[in] SkipTrailingNumbers  TRUE to allow for numbers after the MetaTarget.\r
-  @param[in] Target       The single character that delimits list \r
-                          items (";" normally). \r
+  @param[in] Target       The single character that delimits list\r
+                          items (";" normally).\r
 **/\r
 BOOLEAN\r
 SearchList(\r
@@ -119,7 +119,7 @@ SearchList(
 }\r
 \r
 /**\r
-  Determine what type of device is represented and return it's string.  The \r
+  Determine what type of device is represented and return it's string.  The\r
   string is in allocated memory and must be callee freed.  The HII is is listed below.\r
   The actual string cannot be determined.\r
 \r
@@ -223,7 +223,7 @@ MappingListHasType(
   CHAR16              *NewSpecific;\r
   RETURN_STATUS       Status;\r
   UINTN               Length;\r
-  \r
+\r
   //\r
   // specific has priority\r
   //\r
@@ -529,7 +529,7 @@ PerformMappingDisplay(
   BOOLEAN                   Found;\r
 \r
   if (!Consist && !Normal && Specific == NULL && TypeString == NULL) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel2HiiHandle, L"map");  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel2HiiHandle, L"map");\r
     return (SHELL_INVALID_PARAMETER);\r
   }\r
 \r
@@ -540,7 +540,7 @@ PerformMappingDisplay(
       if (StrnCmp(TypeString, Test, StrLen(Test)-1) != 0) {\r
         Test = (CHAR16*)Fp;\r
         if (StrnCmp(TypeString, Test, StrLen(Test)-1) != 0) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel2HiiHandle, L"map", TypeString);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel2HiiHandle, L"map", TypeString);\r
           return (SHELL_INVALID_PARAMETER);\r
         }\r
       } else if (Test == NULL) {\r
@@ -665,9 +665,9 @@ PerformMappingDisplay(
   }\r
   if (!Found) {\r
     if (Specific != NULL) {\r
-      ShellPrintHiiEx(gST->ConOut->Mode->CursorColumn, gST->ConOut->Mode->CursorRow-1, NULL, STRING_TOKEN (STR_MAP_NF), gShellLevel2HiiHandle, L"map", Specific);  \r
+      ShellPrintHiiEx(gST->ConOut->Mode->CursorColumn, gST->ConOut->Mode->CursorRow-1, NULL, STRING_TOKEN (STR_MAP_NF), gShellLevel2HiiHandle, L"map", Specific);\r
     } else {\r
-      ShellPrintHiiEx(gST->ConOut->Mode->CursorColumn, gST->ConOut->Mode->CursorRow-1, NULL, STRING_TOKEN (STR_CD_NF), gShellLevel2HiiHandle, L"map");  \r
+      ShellPrintHiiEx(gST->ConOut->Mode->CursorColumn, gST->ConOut->Mode->CursorRow-1, NULL, STRING_TOKEN (STR_CD_NF), gShellLevel2HiiHandle, L"map");\r
     }\r
   }\r
   return (SHELL_SUCCESS);\r
@@ -879,7 +879,7 @@ AddMappingFromMapping(
   EFI_STATUS                      Status;\r
   CHAR16                          *NewSName;\r
   RETURN_STATUS                   StrRetStatus;\r
-  \r
+\r
   NewSName = AllocateCopyPool(StrSize(SName) + sizeof(CHAR16), SName);\r
   if (NewSName == NULL) {\r
     return (SHELL_OUT_OF_RESOURCES);\r
@@ -935,7 +935,7 @@ AddMappingFromHandle(
   EFI_STATUS                Status;\r
   CHAR16                    *NewSName;\r
   RETURN_STATUS             StrRetStatus;\r
-  \r
+\r
   NewSName = AllocateCopyPool(StrSize(SName) + sizeof(CHAR16), SName);\r
   if (NewSName == NULL) {\r
     return (SHELL_OUT_OF_RESOURCES);\r
@@ -1084,7 +1084,7 @@ ShellCommandRunMap (
   Status = ShellCommandLineParse (MapParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"map", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"map", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -1100,7 +1100,7 @@ ShellCommandRunMap (
     if (ShellCommandLineGetFlag(Package, L"-?")) {\r
       ASSERT(FALSE);\r
     } else if (ShellCommandLineGetRawValue(Package, 3) != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"map");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"map");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       //\r
@@ -1114,7 +1114,7 @@ ShellCommandRunMap (
           || ShellCommandLineGetFlag(Package, L"-u")\r
           || ShellCommandLineGetFlag(Package, L"-t")\r
          ){\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CON), gShellLevel2HiiHandle, L"map");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CON), gShellLevel2HiiHandle, L"map");\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else {\r
           SName = ShellCommandLineGetValue(Package, L"-d");\r
@@ -1122,18 +1122,18 @@ ShellCommandRunMap (
             Status = PerformMappingDelete(SName);\r
             if (EFI_ERROR(Status)) {\r
               if (Status == EFI_ACCESS_DENIED) {\r
-                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_AD), gShellLevel2HiiHandle, L"map");  \r
+                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_AD), gShellLevel2HiiHandle, L"map");\r
                 ShellStatus = SHELL_ACCESS_DENIED;\r
               } else if (Status == EFI_NOT_FOUND) {\r
-                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_MAP_NF), gShellLevel2HiiHandle, L"map", SName);  \r
+                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_MAP_NF), gShellLevel2HiiHandle, L"map", SName);\r
                 ShellStatus = SHELL_INVALID_PARAMETER;\r
               } else {\r
-                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_UK), gShellLevel2HiiHandle, L"map", Status);  \r
+                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_UK), gShellLevel2HiiHandle, L"map", Status);\r
                 ShellStatus = SHELL_UNSUPPORTED;\r
               }\r
             }\r
           } else {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel2HiiHandle, L"map");  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel2HiiHandle, L"map");\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           }\r
         }\r
@@ -1151,7 +1151,7 @@ ShellCommandRunMap (
           //\r
           Status = ShellCommandCreateInitialMappingsAndPaths();\r
           if (EFI_ERROR(Status)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_UK), gShellLevel2HiiHandle, L"map", Status);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_UK), gShellLevel2HiiHandle, L"map", Status);\r
             ShellStatus = SHELL_UNSUPPORTED;\r
           }\r
         }\r
@@ -1161,7 +1161,7 @@ ShellCommandRunMap (
           //\r
           Status = ShellCommandUpdateMapping ();\r
           if (EFI_ERROR(Status)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_UK), gShellLevel2HiiHandle, L"map", Status);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_UK), gShellLevel2HiiHandle, L"map", Status);\r
             ShellStatus = SHELL_UNSUPPORTED;\r
           }\r
         }\r
@@ -1241,7 +1241,7 @@ ShellCommandRunMap (
             MapAsHandle = NULL;\r
           }\r
           if (MapAsHandle == NULL && Mapping[StrLen(Mapping)-1] != L':') {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel2HiiHandle, L"map", Mapping);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel2HiiHandle, L"map", Mapping);\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           } else {\r
             TempStringLength = StrLen(SName);\r
index 3a9e037d0e41e6d082bb91c28d314614d3560f82..21165c0ca7aef9fa3fd755193c26d0a9eecfb56e 100644 (file)
@@ -2,7 +2,7 @@
   Main file for attrib shell level 2 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -55,7 +55,7 @@ ShellCommandRunMkDir (
   Status = ShellCommandLineParse (EmptyParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"mkdir", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"mkdir", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -76,7 +76,7 @@ ShellCommandRunMkDir (
       //\r
       // we didnt get a single parameter\r
       //\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel2HiiHandle, L"mkdir");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel2HiiHandle, L"mkdir");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       for ( DirCreateCount = 1\r
@@ -108,7 +108,7 @@ ShellCommandRunMkDir (
           ASSERT(FileHandle == NULL);\r
           //\r
           // create the nested directory from parent to child.\r
-          // if NewDirName = test1\test2\test3, first create "test1\" directory, then "test1\test2\", finally "test1\test2\test3". \r
+          // if NewDirName = test1\test2\test3, first create "test1\" directory, then "test1\test2\", finally "test1\test2\test3".\r
           //\r
           NewDirNameCopy = AllocateCopyPool (StrSize(NewDirName), NewDirName);\r
           NewDirNameCopy = PathCleanUpDirectories (NewDirNameCopy);\r
index 71e43367c64d026f9dc4abac41f64b35b79aa9f9..43cd20e1bf6b8f54f3c59f171fac6bdc1e203f69 100644 (file)
@@ -2,7 +2,7 @@
   Main file for mv shell level 2 function.\r
 \r
   (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -17,7 +17,7 @@
 \r
 /**\r
   function to determine if a move is between file systems.\r
-  \r
+\r
   @param FullName [in]    The name of the file to move.\r
   @param Cwd      [in]    The current working directory\r
   @param DestPath [in]    The target location to move to\r
@@ -170,14 +170,14 @@ IsValidMove(
   //\r
   // invalid to move read only or move to a read only destination\r
   //\r
-  if (((Attribute & EFI_FILE_READ_ONLY) != 0) \r
+  if (((Attribute & EFI_FILE_READ_ONLY) != 0)\r
     || (FileStatus == EFI_WRITE_PROTECTED)\r
     || ((DestAttr & EFI_FILE_READ_ONLY) != 0)\r
     ) {\r
     ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_MV_INV_RO), gShellLevel2HiiHandle, SourcePath);\r
     return (FALSE);\r
-  }  \r
-  \r
+  }\r
+\r
   DestPathCopy = AllocateCopyPool(StrSize(DestPath), DestPath);\r
   if (DestPathCopy == NULL) {\r
     return (FALSE);\r
@@ -196,7 +196,7 @@ IsValidMove(
   // If they're the same, or if source is "above" dest on file path tree\r
   //\r
   if ( StringNoCaseCompare (&DestPathWalker, &SourcePath) == 0 ||\r
-       ((StrStr(DestPathWalker, SourcePath) == DestPathWalker) && \r
+       ((StrStr(DestPathWalker, SourcePath) == DestPathWalker) &&\r
         (DestPathWalker[StrLen(SourcePath)] == '\\')\r
        )\r
      ) {\r
@@ -311,7 +311,7 @@ GetDestinationLocation(
     //\r
     if (!IsNodeAtEnd(&DestList->Link, &Node->Link)) {\r
       ShellCloseFileMetaArg(&DestList);\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_MARG_ERROR), gShellLevel2HiiHandle, L"mv", DestParameter);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_MARG_ERROR), gShellLevel2HiiHandle, L"mv", DestParameter);\r
       return (SHELL_INVALID_PARAMETER);\r
     }\r
 \r
@@ -331,7 +331,7 @@ GetDestinationLocation(
       // cant move multiple files onto a single file.\r
       //\r
       ShellCloseFileMetaArg(&DestList);\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_ERROR), gShellLevel2HiiHandle, L"mv", DestParameter);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_ERROR), gShellLevel2HiiHandle, L"mv", DestParameter);\r
       return (SHELL_INVALID_PARAMETER);\r
     }\r
   }\r
@@ -401,7 +401,7 @@ MoveBetweenFileSystems(
 EFI_STATUS\r
 CreateFullDestPath(\r
   IN CONST CHAR16 **DestPath,\r
-  OUT CHAR16      **FullDestPath, \r
+  OUT CHAR16      **FullDestPath,\r
   IN CONST CHAR16 *FileName\r
   )\r
 {\r
@@ -555,7 +555,7 @@ ValidateAndMoveFiles(
       StrCpyS(FullCwd, StrSize(Cwd)/sizeof(CHAR16)+1, Cwd);\r
       StrCatS(FullCwd, StrSize(Cwd)/sizeof(CHAR16)+1, L"\\");\r
     }\r
-  } \r
+  }\r
 \r
   Status = ShellLevel2StripQuotes (DestParameter, &CleanFilePathStr);\r
   if (EFI_ERROR (Status)) {\r
@@ -757,7 +757,7 @@ ShellCommandRunMv (
   Status = ShellCommandLineParse (EmptyParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"mv", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"mv", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -777,7 +777,7 @@ ShellCommandRunMv (
         //\r
         // we have insufficient parameters\r
         //\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel2HiiHandle, L"mv");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel2HiiHandle, L"mv");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         break;\r
       case 2:\r
@@ -785,12 +785,12 @@ ShellCommandRunMv (
         // must have valid CWD for single parameter...\r
         //\r
         if (ShellGetCurrentDir(NULL) == NULL){\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_CWD), gShellLevel2HiiHandle, L"mv");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_CWD), gShellLevel2HiiHandle, L"mv");\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else {\r
           Status = ShellOpenFileMetaArg((CHAR16*)ShellCommandLineGetRawValue(Package, 1), EFI_FILE_MODE_WRITE|EFI_FILE_MODE_READ, &FileList);\r
           if (FileList == NULL || IsListEmpty(&FileList->Link) || EFI_ERROR(Status)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_NF), gShellLevel2HiiHandle, L"mv", ShellCommandLineGetRawValue(Package, 1));  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_NF), gShellLevel2HiiHandle, L"mv", ShellCommandLineGetRawValue(Package, 1));\r
             ShellStatus = SHELL_NOT_FOUND;\r
           } else  {\r
             //\r
@@ -819,7 +819,7 @@ ShellCommandRunMv (
           }\r
           Status = ShellOpenFileMetaArg((CHAR16*)ShellCommandLineGetRawValue(Package, LoopCounter), EFI_FILE_MODE_WRITE|EFI_FILE_MODE_READ, &FileList);\r
           if (FileList == NULL || IsListEmpty(&FileList->Link) || EFI_ERROR(Status)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_NF), gShellLevel2HiiHandle, L"mv", ShellCommandLineGetRawValue(Package, LoopCounter));  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_NF), gShellLevel2HiiHandle, L"mv", ShellCommandLineGetRawValue(Package, LoopCounter));\r
             ShellStatus = SHELL_NOT_FOUND;\r
           } else  {\r
             //\r
@@ -836,7 +836,7 @@ ShellCommandRunMv (
             Status = ShellCloseFileMetaArg(&FileList);\r
             if (EFI_ERROR(Status) && ShellStatus == SHELL_SUCCESS) {\r
               ShellStatus = SHELL_ACCESS_DENIED;\r
-              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_FILE), gShellLevel2HiiHandle, L"mv", ShellCommandLineGetRawValue(Package, 1), ShellStatus|MAX_BIT);  \r
+              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_FILE), gShellLevel2HiiHandle, L"mv", ShellCommandLineGetRawValue(Package, 1), ShellStatus|MAX_BIT);\r
             }\r
           }\r
         }\r
index 85c39ba78fa13e379c6f26c286c41d5a8d654565..798b28983d45bcdfea0556ae73e396d20417fe60 100644 (file)
@@ -2,7 +2,7 @@
   Main file for Parse shell level 2 function.\r
 \r
   (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -19,9 +19,9 @@
   Check if data is coming from StdIn output.\r
 \r
   @param[in] None\r
\r
-  @retval TRUE  StdIn stream data available to parse \r
-  @retval FALSE StdIn stream data is not available to parse. \r
+\r
+  @retval TRUE  StdIn stream data available to parse\r
+  @retval FALSE StdIn stream data is not available to parse.\r
 **/\r
 BOOLEAN\r
 IsStdInDataAvailable (\r
@@ -30,11 +30,11 @@ IsStdInDataAvailable (
 {\r
   SHELL_FILE_HANDLE FileHandle;\r
   EFI_STATUS        Status;\r
-  CHAR16            CharBuffer; \r
+  CHAR16            CharBuffer;\r
   UINTN             CharSize;\r
   UINT64            OriginalFilePosition;\r
 \r
-  Status               = EFI_SUCCESS; \r
+  Status               = EFI_SUCCESS;\r
   FileHandle           = NULL;\r
   OriginalFilePosition = 0;\r
 \r
@@ -57,11 +57,11 @@ IsStdInDataAvailable (
 \r
 /**\r
   Handle stings for SFO Output with escape character ^ in a string\r
-  1. Quotation marks in the string must be escaped by using a ^ character (i.e. ^"). \r
+  1. Quotation marks in the string must be escaped by using a ^ character (i.e. ^").\r
   2. The ^ character may be inserted using ^^.\r
 \r
   @param[in]  String  The Unicode NULL-terminated string.\r
\r
+\r
   @retval NewString   The new string handled for SFO.\r
 **/\r
 EFI_STRING\r
@@ -76,7 +76,7 @@ HandleStringWithEscapeCharForParse (
   if (String == NULL) {\r
     return NULL;\r
   }\r
-  \r
+\r
   //\r
   // start to parse the input string.\r
   //\r
@@ -96,13 +96,13 @@ HandleStringWithEscapeCharForParse (
     StrWalker++;\r
     NewStr++;\r
   }\r
-  \r
+\r
   return ReturnStr;\r
 }\r
 \r
 \r
 /**\r
-  Do the actual parsing of the file.  the file should be SFO output from a \r
+  Do the actual parsing of the file.  the file should be SFO output from a\r
   shell command or a similar format.\r
 \r
   @param[in] FileName               The filename to open.\r
@@ -143,14 +143,14 @@ PerformParsing(
 \r
   Status = ShellOpenFileByName(FileName, &FileHandle, EFI_FILE_MODE_READ, 0);\r
   if (EFI_ERROR(Status)) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellLevel2HiiHandle, L"parse", FileName);  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellLevel2HiiHandle, L"parse", FileName);\r
     ShellStatus = SHELL_NOT_FOUND;\r
   } else if (!EFI_ERROR (FileHandleIsDirectory (FileHandle))) {\r
-    ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_NOT_FILE), gShellLevel2HiiHandle, L"parse", FileName);  \r
+    ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_NOT_FILE), gShellLevel2HiiHandle, L"parse", FileName);\r
     ShellStatus = SHELL_NOT_FOUND;\r
   } else {\r
     for (LoopVariable = 0 ; LoopVariable < ShellCommandInstance && !ShellFileHandleEof(FileHandle);) {\r
-     TempLine = ShellFileHandleReturnLine (FileHandle, &Ascii); \r
+     TempLine = ShellFileHandleReturnLine (FileHandle, &Ascii);\r
 \r
       if ((TempLine == NULL) || (*TempLine == CHAR_NULL && StreamingUnicode)) {\r
          break;\r
@@ -169,7 +169,7 @@ PerformParsing(
     if (LoopVariable == ShellCommandInstance) {\r
       LoopVariable = 0;\r
       while(1) {\r
-        TempLine = ShellFileHandleReturnLine (FileHandle, &Ascii); \r
+        TempLine = ShellFileHandleReturnLine (FileHandle, &Ascii);\r
         if (TempLine == NULL\r
             || *TempLine == CHAR_NULL\r
             || StrStr (TempLine, L"ShellCommand,") == TempLine) {\r
@@ -188,7 +188,7 @@ PerformParsing(
             }\r
             if (ColumnLoop == ColumnIndex) {\r
               if (ColumnPointer == NULL) {\r
-                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellLevel2HiiHandle, L"parse", L"Column Index");  \r
+                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellLevel2HiiHandle, L"parse", L"Column Index");\r
                 ShellStatus = SHELL_INVALID_PARAMETER;\r
               } else {\r
                 TempSpot = StrStr (ColumnPointer, L",\"");\r
@@ -266,7 +266,7 @@ ShellCommandRunParse (
   Status = ShellCommandLineParseEx (ParamList, &Package, &ProblemParam, TRUE, FALSE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"parse", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"parse", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -276,11 +276,11 @@ ShellCommandRunParse (
     StreamingUnicode = IsStdInDataAvailable ();\r
     if ((!StreamingUnicode && (ShellCommandLineGetCount(Package) < 4)) ||\r
         (ShellCommandLineGetCount(Package) < 3)) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel2HiiHandle, L"parse");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel2HiiHandle, L"parse");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if ((StreamingUnicode && (ShellCommandLineGetCount(Package) > 3)) ||\r
                 (ShellCommandLineGetCount(Package) > 4)) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"parse");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"parse");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       if (StreamingUnicode) {\r
index 40ad8d9c4e0aad41f17ddd6e9fc4afa42c0cc146..59fa6f5acd3aac9723ed97024eec3db964626354 100644 (file)
@@ -2,7 +2,7 @@
   Main file for attrib shell level 2 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -60,7 +60,7 @@ ShellCommandRunReset (
   Status = ShellCommandLineParse (ResetParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"reset", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"reset", ProblemParam);\r
       FreePool(ProblemParam);\r
       return (SHELL_INVALID_PARAMETER);\r
     } else {\r
@@ -73,7 +73,7 @@ ShellCommandRunReset (
     if (ShellCommandLineGetFlag(Package, L"-?")) {\r
       ASSERT(FALSE);\r
     } else if (ShellCommandLineGetRawValue(Package, 1) != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"reset");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"reset");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
 \r
@@ -114,7 +114,7 @@ ShellCommandRunReset (
       //\r
       if (ShellCommandLineGetFlag(Package, L"-w")) {\r
         if (ShellCommandLineGetFlag(Package, L"-s") || ShellCommandLineGetFlag(Package, L"-c")) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"reset");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"reset");\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else {\r
           String = ShellCommandLineGetValue(Package, L"-w");\r
@@ -126,7 +126,7 @@ ShellCommandRunReset (
         }\r
       } else if (ShellCommandLineGetFlag(Package, L"-s")) {\r
         if (ShellCommandLineGetFlag(Package, L"-c")) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"reset");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"reset");\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else {\r
           String = ShellCommandLineGetValue(Package, L"-s");\r
index 288e7666a819ef9f903a079a149f993398ed3f51..3986b36e7c7b12e757355df3a1aa2d4b0ddce98a 100644 (file)
@@ -24,7 +24,7 @@ STATIC CONST SHELL_PARAM_ITEM ParamList[] = {
   Determine if a directory has no files in it.\r
 \r
   @param[in] FileHandle   The EFI_HANDLE to the directory.\r
-  \r
+\r
   @retval TRUE  The directory has no files (or directories).\r
   @retval FALSE The directory has at least 1 file or directory in it.\r
 **/\r
@@ -85,7 +85,7 @@ CascadeDelete(
   Status                = EFI_SUCCESS;\r
 \r
   if ((Node->Info->Attribute & EFI_FILE_READ_ONLY) == EFI_FILE_READ_ONLY) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_RM_LOG_DETELE_RO), gShellLevel2HiiHandle, L"rm", Node->FullName);  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_RM_LOG_DETELE_RO), gShellLevel2HiiHandle, L"rm", Node->FullName);\r
     return (SHELL_ACCESS_DENIED);\r
   }\r
 \r
@@ -292,7 +292,7 @@ ShellCommandRunRm (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"rm", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"rm", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -309,7 +309,7 @@ ShellCommandRunRm (
       //\r
       // we insufficient parameters\r
       //\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel2HiiHandle, L"rm");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel2HiiHandle, L"rm");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       //\r
@@ -322,7 +322,7 @@ ShellCommandRunRm (
          ){\r
         Status = ShellOpenFileMetaArg((CHAR16*)Param, EFI_FILE_MODE_WRITE|EFI_FILE_MODE_READ, &FileList);\r
         if (EFI_ERROR(Status) || FileList == NULL || IsListEmpty(&FileList->Link)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_NF), gShellLevel2HiiHandle, L"rm", (CHAR16*)Param);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_NF), gShellLevel2HiiHandle, L"rm", (CHAR16*)Param);\r
           ShellStatus = SHELL_NOT_FOUND;\r
           break;\r
         }\r
index 7ca19427d5ef5963bf8b3541e3c51e2f1dc37780..dbec6460be528845470cc088b266fa234279fe86 100644 (file)
@@ -2,7 +2,7 @@
   Main file for attrib shell level 2 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -91,7 +91,7 @@ ShellCommandRunSet (
   Status = ShellCommandLineParse (SetParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"set", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"set", ProblemParam);\r
       FreePool(ProblemParam);\r
       return (SHELL_INVALID_PARAMETER);\r
     } else {\r
@@ -104,10 +104,10 @@ ShellCommandRunSet (
     if (ShellCommandLineGetFlag(Package, L"-?")) {\r
       ASSERT(FALSE);\r
     } else if (ShellCommandLineGetRawValue(Package, 3) != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"set");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"set");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (ShellCommandLineGetRawValue(Package, 1) != NULL && ShellCommandLineGetFlag(Package, L"-d")) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"set");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"set");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (ShellCommandLineGetFlag(Package, L"-d")) {\r
       //\r
@@ -115,12 +115,12 @@ ShellCommandRunSet (
       //\r
       KeyName = ShellCommandLineGetValue(Package, L"-d");\r
       if (KeyName == NULL) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellLevel2HiiHandle, L"set", L"-d");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellLevel2HiiHandle, L"set", L"-d");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else {\r
         Status = ShellSetEnvironmentVariable(KeyName, L"", ShellCommandLineGetFlag(Package, L"-v"));\r
         if (EFI_ERROR(Status)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SET_ND), gShellLevel2HiiHandle, L"set", KeyName);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SET_ND), gShellLevel2HiiHandle, L"set", KeyName);\r
           ShellStatus = SHELL_DEVICE_ERROR;\r
         }\r
       }\r
@@ -144,7 +144,7 @@ ShellCommandRunSet (
           ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SET_ERROR_SET), gShellLevel2HiiHandle, L"set", KeyName);\r
           ShellStatus = (SHELL_STATUS) (Status & (~MAX_BIT));\r
         }\r
-        \r
+\r
       } else {\r
         if (KeyName != NULL) {\r
           //\r
@@ -152,7 +152,7 @@ ShellCommandRunSet (
           //\r
           Value = ShellGetEnvironmentVariable(KeyName);\r
           if (Value == NULL) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SET_NF), gShellLevel2HiiHandle, L"set", KeyName);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SET_NF), gShellLevel2HiiHandle, L"set", KeyName);\r
             ShellStatus = SHELL_SUCCESS;\r
           } else {\r
             ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_SET_DISP), gShellLevel2HiiHandle, KeyName, Value);\r
index 0b7551a239e995eaeaf8d1e7aa1d822cbf2ed745..0e948e3b0a966d6eab0ac0e9314ce676e3fc7334 100644 (file)
@@ -76,7 +76,7 @@ InternalIsTimeLikeString (
 }\r
 \r
 /**\r
-  Verify that the DateString is valid and if so set that as the current \r
+  Verify that the DateString is valid and if so set that as the current\r
   date.\r
 \r
   @param[in] DateString     The pointer to a string representation of the date.\r
@@ -102,7 +102,7 @@ CheckAndSetDate (
 \r
   Status = gRT->GetTime(&TheTime, NULL);\r
   if (EFI_ERROR(Status)) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_UEFI_FUNC_WARN), gShellLevel2HiiHandle, L"date", L"gRT->GetTime", Status);  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_UEFI_FUNC_WARN), gShellLevel2HiiHandle, L"date", L"gRT->GetTime", Status);\r
     return (SHELL_DEVICE_ERROR);\r
   }\r
 \r
@@ -195,7 +195,7 @@ ShellCommandRunDate (
   Status = ShellCommandLineParse (SfoParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"date", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"date", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -208,7 +208,7 @@ ShellCommandRunDate (
     if (ShellCommandLineGetFlag(Package, L"-?")) {\r
       ASSERT(FALSE);\r
     } else if (ShellCommandLineGetRawValue(Package, 2) != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"date");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"date");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       //\r
@@ -221,7 +221,7 @@ ShellCommandRunDate (
         //\r
         Status = gRT->GetTime(&TheTime, NULL);\r
         if (EFI_ERROR(Status)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_UEFI_FUNC_WARN), gShellLevel2HiiHandle, L"date", L"gRT->GetTime", Status);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_UEFI_FUNC_WARN), gShellLevel2HiiHandle, L"date", L"gRT->GetTime", Status);\r
           return (SHELL_DEVICE_ERROR);\r
         }\r
 \r
@@ -241,7 +241,7 @@ ShellCommandRunDate (
         }\r
       } else {\r
         if (PcdGet8(PcdShellSupportLevel) == 2) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"date");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"date");\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else {\r
           //\r
@@ -254,7 +254,7 @@ ShellCommandRunDate (
             ShellStatus = CheckAndSetDate(Param1);\r
           }\r
           if (ShellStatus != SHELL_SUCCESS) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel2HiiHandle, L"date", Param1);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel2HiiHandle, L"date", Param1);\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           }\r
         }\r
@@ -287,7 +287,7 @@ STATIC CONST SHELL_PARAM_ITEM TimeParamList3[] = {
   };\r
 \r
 /**\r
-  Verify that the TimeString is valid and if so set that as the current \r
+  Verify that the TimeString is valid and if so set that as the current\r
   time.\r
 \r
   @param[in] TimeString     The pointer to a string representation of the time.\r
@@ -320,7 +320,7 @@ CheckAndSetTime (
 \r
   Status = gRT->GetTime(&TheTime, NULL);\r
   if (EFI_ERROR(Status)) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_UEFI_FUNC_WARN), gShellLevel2HiiHandle, L"time", L"gRT->GetTime", Status);  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_UEFI_FUNC_WARN), gShellLevel2HiiHandle, L"time", L"gRT->GetTime", Status);\r
     return (SHELL_DEVICE_ERROR);\r
   }\r
 \r
@@ -433,7 +433,7 @@ ShellCommandRunTime (
   }\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"time", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"time", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -445,14 +445,14 @@ ShellCommandRunTime (
     //\r
     Status = gRT->GetTime(&TheTime, NULL);\r
     if (EFI_ERROR(Status)) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_UEFI_FUNC_WARN), gShellLevel2HiiHandle, L"time", L"gRT->GetTime", Status);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_UEFI_FUNC_WARN), gShellLevel2HiiHandle, L"time", L"gRT->GetTime", Status);\r
       return (SHELL_DEVICE_ERROR);\r
     }\r
 \r
     if (ShellCommandLineGetFlag(Package, L"-?")) {\r
       ASSERT(FALSE);\r
     } else if (ShellCommandLineGetRawValue(Package, 2) != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"time");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"time");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       //\r
@@ -539,11 +539,11 @@ ShellCommandRunTime (
               ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_TIME_DST3), gShellLevel2HiiHandle);\r
               break;\r
             default:\r
-              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_UEFI_FUNC_ERROR), gShellLevel2HiiHandle, L"time", L"gRT->GetTime", L"TheTime.Daylight", TheTime.Daylight);  \r
+              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_UEFI_FUNC_ERROR), gShellLevel2HiiHandle, L"time", L"gRT->GetTime", L"TheTime.Daylight", TheTime.Daylight);\r
           }\r
       } else {\r
         if (PcdGet8(PcdShellSupportLevel) == 2) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"time");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"time");\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else {\r
           //\r
@@ -578,7 +578,7 @@ ShellCommandRunTime (
               }\r
             }\r
             if (!(Tz >= -1440 && Tz <= 1440) && Tz != EFI_UNSPECIFIED_TIMEZONE) {\r
-              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM_VAL), gShellLevel2HiiHandle, L"time", TempLocation, L"-tz");  \r
+              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM_VAL), gShellLevel2HiiHandle, L"time", TempLocation, L"-tz");\r
               ShellStatus = SHELL_INVALID_PARAMETER;\r
             }\r
           } else {\r
@@ -599,7 +599,7 @@ ShellCommandRunTime (
               Daylight = 0xff; //make it invalid = will not use\r
             }\r
             if (Daylight != 0 && Daylight != 1 && Daylight != 3) {\r
-              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM_VAL), gShellLevel2HiiHandle, L"time", TempLocation, L"-d");  \r
+              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM_VAL), gShellLevel2HiiHandle, L"time", TempLocation, L"-d");\r
               ShellStatus = SHELL_INVALID_PARAMETER;\r
             }\r
           } else {\r
@@ -611,7 +611,7 @@ ShellCommandRunTime (
           if (ShellStatus == SHELL_SUCCESS) {\r
             ShellStatus = CheckAndSetTime(ShellCommandLineGetRawValue(Package, 1), Tz, Daylight);\r
             if (ShellStatus != SHELL_SUCCESS) {\r
-              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel2HiiHandle, L"time", ShellCommandLineGetRawValue(Package, 1));  \r
+              ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel2HiiHandle, L"time", ShellCommandLineGetRawValue(Package, 1));\r
               ShellStatus = SHELL_INVALID_PARAMETER;\r
             }\r
           }\r
@@ -688,7 +688,7 @@ STATIC CONST SHELL_PARAM_ITEM TimeZoneParamList3[] = {
 };\r
 \r
 /**\r
-  Verify that the TimeZoneString is valid and if so set that as the current \r
+  Verify that the TimeZoneString is valid and if so set that as the current\r
   timezone.\r
 \r
   @param[in] TimeZoneString     The pointer to a string representation of the timezone.\r
@@ -733,7 +733,7 @@ CheckAndSetTimeZone (
 \r
   Status = gRT->GetTime(&TheTime, NULL);\r
   if (EFI_ERROR(Status)) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_UEFI_FUNC_WARN), gShellLevel2HiiHandle, L"timezone", L"gRT->GetTime", Status);  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_UEFI_FUNC_WARN), gShellLevel2HiiHandle, L"timezone", L"gRT->GetTime", Status);\r
     return (SHELL_DEVICE_ERROR);\r
   }\r
 \r
@@ -829,7 +829,7 @@ ShellCommandRunTimeZone (
   }\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"timezone", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"timezone", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -840,18 +840,18 @@ ShellCommandRunTimeZone (
     // check for "-?"\r
     //\r
     if (ShellCommandLineGetCount(Package) > 1) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"timezone");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"timezone");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (ShellCommandLineGetFlag(Package, L"-?")) {\r
       ASSERT(FALSE);\r
     } else if (ShellCommandLineGetFlag(Package, L"-s")) {\r
       if ((ShellCommandLineGetFlag(Package, L"-l")) || (ShellCommandLineGetFlag(Package, L"-f"))) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel2HiiHandle, L"timezone", L"-l or -f");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel2HiiHandle, L"timezone", L"-l or -f");\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
       } else {\r
         ASSERT(PcdGet8(PcdShellSupportLevel) == 3);\r
         if (ShellCommandLineGetValue(Package, L"-s") == NULL) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellLevel2HiiHandle, L"timezone", L"-s");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellLevel2HiiHandle, L"timezone", L"-s");\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else {\r
           //\r
@@ -859,7 +859,7 @@ ShellCommandRunTimeZone (
           //\r
           ShellStatus = CheckAndSetTimeZone(ShellCommandLineGetValue(Package, L"-s"));\r
           if (ShellStatus != SHELL_SUCCESS) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel2HiiHandle, L"timezone", ShellCommandLineGetValue(Package, L"-s"));  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel2HiiHandle, L"timezone", ShellCommandLineGetValue(Package, L"-s"));\r
             ShellStatus = SHELL_INVALID_PARAMETER;\r
           }\r
         }\r
@@ -880,7 +880,7 @@ ShellCommandRunTimeZone (
       //\r
       Status = gRT->GetTime(&TheTime, NULL);\r
       if (EFI_ERROR(Status)) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_UEFI_FUNC_WARN), gShellLevel2HiiHandle, L"timezone", L"gRT->GetTime", Status);  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_UEFI_FUNC_WARN), gShellLevel2HiiHandle, L"timezone", L"gRT->GetTime", Status);\r
         return (SHELL_DEVICE_ERROR);\r
       }\r
 \r
@@ -951,7 +951,7 @@ ShellCommandRunTimeZone (
               //\r
               ShellPrintHiiEx (-1, -1, NULL, TimeZoneList[LoopVar].StringId, gShellLevel2HiiHandle);\r
               break;\r
-            } \r
+            }\r
           }\r
         } else {\r
           //\r
index 36bc3552b57936313c36e1ba85e84f326d4010fc..cfad8081935658891308f20e49e4455a057cbb07 100644 (file)
@@ -269,7 +269,7 @@ VerifyIntermediateDirectories (
 \r
   @retval 0    Source and Target are identical strings without regard to case.\r
   @retval !=0  Source is not identical to Target.\r
-  \r
+\r
 **/\r
 INTN\r
 StrniCmp(\r
@@ -301,7 +301,7 @@ StrniCmp(
     FreePool (SourceCopy);\r
     return -1;\r
   }\r
-  \r
+\r
   SourceCopy[SourceLength] = L'\0';\r
   TargetCopy[TargetLength] = L'\0';\r
   Result = gUnicodeCollation->StriColl (gUnicodeCollation, SourceCopy, TargetCopy);\r
@@ -315,8 +315,8 @@ StrniCmp(
   Cleans off all the quotes in the string.\r
 \r
   @param[in]     OriginalString   pointer to the string to be cleaned.\r
-  @param[out]   CleanString      The new string with all quotes removed. \r
-                                                  Memory allocated in the function and free \r
+  @param[out]   CleanString      The new string with all quotes removed.\r
+                                                  Memory allocated in the function and free\r
                                                   by caller.\r
 \r
   @retval EFI_SUCCESS   The operation was successful.\r
@@ -328,7 +328,7 @@ ShellLevel2StripQuotes (
   )\r
 {\r
   CHAR16            *Walker;\r
-  \r
+\r
   if (OriginalString == NULL || CleanString == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
index fef6adc3e1b52a774ae7c4c797fb7707a3c657c7..fc61054cdcc4418d91a91b50c7538ef0f6f99371 100644 (file)
@@ -9,7 +9,7 @@
   * functions are non-interactive only\r
 \r
 \r
-  Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -288,7 +288,7 @@ VerifyIntermediateDirectories (
 \r
   @retval 0    Source and Target are identical strings without regard to case.\r
   @retval !=0  Source is not identical to Target.\r
-  \r
+\r
 **/\r
 INTN\r
 StrniCmp(\r
@@ -301,8 +301,8 @@ StrniCmp(
   Cleans off all the quotes in the string.\r
 \r
   @param[in]     OriginalString   pointer to the string to be cleaned.\r
-  @param[out]   CleanString      The new string with all quotes removed. \r
-                                                  Memory allocated in the function and free \r
+  @param[out]   CleanString      The new string with all quotes removed.\r
+                                                  Memory allocated in the function and free\r
                                                   by caller.\r
 \r
   @retval EFI_SUCCESS   The operation was successful.\r
index f9c647a0354c462481404172ec92d99beb07be07..7b16f3bfb8138be468f2b81d72f23099b555ae75 100644 (file)
@@ -1,7 +1,7 @@
 // /**\r
 //\r
 // (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
-// Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
 // 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
 "     variable %cwd%.\r\n"\r
 ".SH EXAMPLES\r\n"\r
 " \r\n"\r
-"EXAMPLES:\r\n"     \r
+"EXAMPLES:\r\n"\r
 "  * To change the current file system to the mapped fs0 file system:\r\n"\r
 "    Shell> fs0:\r\n"\r
 " \r\n"\r
 "    fs1:\> cd Tmp\r\n"\r
 ".SH RETURNVALUES\r\n"\r
 " \r\n"\r
-"RETURN VALUES:\r\n"     \r
+"RETURN VALUES:\r\n"\r
 "  SHELL_SUCCESS             The action was completed as requested.\r\n"\r
 "  SHELL_SECURITY_VIOLATION  This function was not performed due to a security\r\n"\r
 "                            violation.\r\n"\r
 "     is specified by sname is deleted.\r\n"\r
 ".SH EXAMPLES\r\n"\r
 " \r\n"\r
-"EXAMPLES:\r\n"  \r
+"EXAMPLES:\r\n"\r
 "  * To add an environment variable:\r\n"\r
 "    Shell> set DiagnosticPath fs0:\efi\diag;fs1:\efi\diag\r\n"\r
 " \r\n"\r
index f911c7eae86d57cdd20d8b348d2335cb242ad63b..e6f4a1993f93ca19a263f08a13ed30cec1584a5b 100644 (file)
@@ -2,7 +2,7 @@
   Main file for vol shell level 2 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -63,7 +63,7 @@ HandleVol(
       StrStr(Name, L"/") != NULL ||\r
       StrStr(Name, L" ") != NULL )\r
       ){\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel2HiiHandle, L"vol", Name);  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel2HiiHandle, L"vol", Name);\r
     return (SHELL_INVALID_PARAMETER);\r
   }\r
 \r
@@ -73,7 +73,7 @@ HandleVol(
     Name != NULL?EFI_FILE_MODE_READ|EFI_FILE_MODE_WRITE:EFI_FILE_MODE_READ);\r
 \r
   if (EFI_ERROR(Status) || ShellFileHandle == NULL) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellLevel2HiiHandle, L"vol", Path);  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellLevel2HiiHandle, L"vol", Path);\r
     return (SHELL_ACCESS_DENIED);\r
   }\r
 \r
@@ -114,13 +114,13 @@ HandleVol(
     if (Size1 > Size2) {\r
       SysInfo = ReallocatePool((UINTN)SysInfo->Size, (UINTN)SysInfo->Size + Size1 - Size2, SysInfo);\r
       if (SysInfo == NULL) {\r
-        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_OUT_MEM), gShellLevel2HiiHandle, L"vol");  \r
+        ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_OUT_MEM), gShellLevel2HiiHandle, L"vol");\r
         ShellStatus = SHELL_OUT_OF_RESOURCES;\r
-      } \r
+      }\r
     }\r
     if (SysInfo != NULL) {\r
-      StrCpyS ( (CHAR16 *) SysInfo->VolumeLabel, \r
-                  (Size1>Size2? Size1/sizeof(CHAR16) : Size2/sizeof(CHAR16)), \r
+      StrCpyS ( (CHAR16 *) SysInfo->VolumeLabel,\r
+                  (Size1>Size2? Size1/sizeof(CHAR16) : Size2/sizeof(CHAR16)),\r
                   Name\r
                   );\r
       SysInfo->Size = SIZE_OF_EFI_FILE_SYSTEM_INFO + Size1;\r
@@ -130,13 +130,13 @@ HandleVol(
         (UINTN)SysInfo->Size,\r
         SysInfo);\r
     }\r
-  }  \r
+  }\r
 \r
   FreePool(SysInfo);\r
 \r
   if (Delete || Name != NULL) {\r
     if (EFI_ERROR(Status)) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_AD), gShellLevel2HiiHandle, L"vol", Path);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_AD), gShellLevel2HiiHandle, L"vol", Path);\r
       ShellStatus = SHELL_ACCESS_DENIED;\r
     }\r
   }\r
@@ -160,7 +160,7 @@ HandleVol(
   }\r
 \r
   gEfiShellProtocol->CloseFile(ShellFileHandle);\r
-  \r
+\r
   ASSERT(SysInfo != NULL);\r
 \r
   if (SysInfo != NULL) {\r
@@ -241,7 +241,7 @@ ShellCommandRunVol (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"vol", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel2HiiHandle, L"vol", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -256,7 +256,7 @@ ShellCommandRunVol (
     }\r
 \r
     if (ShellCommandLineGetCount(Package) > 2) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"vol");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel2HiiHandle, L"vol");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       PathName = ShellCommandLineGetRawValue(Package, 1);\r
@@ -264,7 +264,7 @@ ShellCommandRunVol (
         CurDir = gEfiShellProtocol->GetCurDir(NULL);\r
         if (CurDir == NULL) {\r
           ShellStatus = SHELL_NOT_FOUND;\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_CWD), gShellLevel2HiiHandle, L"vol");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_CWD), gShellLevel2HiiHandle, L"vol");\r
         } else {\r
           PathName = CurDir;\r
         }\r
@@ -283,13 +283,13 @@ ShellCommandRunVol (
         DeleteMode = ShellCommandLineGetFlag(Package, L"-d");\r
         NewName    = ShellCommandLineGetValue(Package, L"-n");\r
         if (DeleteMode && ShellCommandLineGetFlag(Package, L"-n")) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CONFLICT), gShellLevel2HiiHandle, L"vol", L"-d", L"-n");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CONFLICT), gShellLevel2HiiHandle, L"vol", L"-d", L"-n");\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else if (ShellCommandLineGetFlag(Package, L"-n") && NewName == NULL) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellLevel2HiiHandle, L"vol", L"-n");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_VALUE), gShellLevel2HiiHandle, L"vol", L"-n");\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else if (NewName != NULL && StrLen(NewName) > 11) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM_VAL), gShellLevel2HiiHandle, L"vol", NewName, L"-n");  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM_VAL), gShellLevel2HiiHandle, L"vol", NewName, L"-n");\r
           ShellStatus = SHELL_INVALID_PARAMETER;\r
         } else if (ShellStatus == SHELL_SUCCESS) {\r
           ShellStatus = HandleVol(\r
index 3e00eb1d556ef8d6fc49925727617301179738b7..abc1ebe234f84d36fe50315b4ffd299d8bbbd4a6 100644 (file)
@@ -2,7 +2,7 @@
   Main file for Alias shell level 3 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -186,7 +186,7 @@ ShellCommandRunAlias (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel3HiiHandle, L"alias", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel3HiiHandle, L"alias", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -257,7 +257,7 @@ ShellCommandRunAlias (
       // Set volatile alias.\r
       //\r
       ASSERT (VolatileFlag);\r
-      ASSERT (!DeleteFlag); \r
+      ASSERT (!DeleteFlag);\r
       switch (ShellCommandLineGetCount (Package)) {\r
         case 1:\r
         case 2:\r
index 7e7d58d16c08e7a599ad351475f9f43e44602d41..459e08bc9b2fd7c952f122a2c39a47f271aae7c8 100644 (file)
@@ -3,7 +3,7 @@
 \r
   (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -63,7 +63,7 @@ ShellCommandRunCls (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel3HiiHandle, L"cls", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel3HiiHandle, L"cls", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
index a638de8ce22b13873265569d2b30a18548ebd02c..a10edb2abd0085700024f4c9c4700c355ca204b6 100644 (file)
@@ -2,7 +2,7 @@
   Main file for Echo shell level 3 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -61,7 +61,7 @@ ShellCommandRunEcho (
   Status = ShellCommandLineParseEx (ParamList, &Package, &ProblemParam, TRUE, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel3HiiHandle, L"echo", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel3HiiHandle, L"echo", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -104,7 +104,7 @@ ShellCommandRunEcho (
         StrnCatGrow(&PrintString, &Size, ShellCommandLineGetRawValue(Package, ParamCount), 0);\r
         if (ShellCommandLineGetRawValue(Package, ParamCount+1) != NULL) {\r
           StrnCatGrow(&PrintString, &Size, L" ", 0);\r
-        } \r
+        }\r
       }\r
       ShellPrintEx(-1, -1, L"%s\r\n", PrintString);\r
       SHELL_FREE_NON_NULL(PrintString);\r
index 21c5bc81ebcfc258d6e4c5b6cac5f47319cd75e0..6917fdce132ca716a42825f21fff7318796e34aa 100644 (file)
@@ -2,7 +2,7 @@
   Main file for GetMtc shell level 3 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -51,7 +51,7 @@ ShellCommandRunGetMtc (
   Status = ShellCommandLineParse (EmptyParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel3HiiHandle, L"getmtc", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel3HiiHandle, L"getmtc", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -64,7 +64,7 @@ ShellCommandRunGetMtc (
     if (ShellCommandLineGetFlag(Package, L"-?")) {\r
       ASSERT(FALSE);\r
     } else if (ShellCommandLineGetRawValue(Package, 1) != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel3HiiHandle, L"getmtc");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel3HiiHandle, L"getmtc");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       //\r
index f6159c133585b67c5ab208c53e3e5364a1a414e6..3740357a70484711ccd92032033b388c2f366843 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Main file for Help shell level 3 function.\r
 \r
-  Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved. <BR>\r
   Copyright (c) 2014, ARM Limited. All rights reserved. <BR>\r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
 \r
@@ -27,7 +27,7 @@
 \r
    the resultant list is a double NULL terminated list of NULL terminated strings.\r
 \r
-   upon successful return the memory must be caller freed (unless passed back in \r
+   upon successful return the memory must be caller freed (unless passed back in\r
    via a loop where it will get reallocated).\r
 \r
    @param[in,out] DestList    double pointer to the list. may be NULL.\r
@@ -38,7 +38,7 @@
 **/\r
 EFI_STATUS\r
 LexicalInsertIntoList(\r
-  IN OUT   CHAR16 **DestList, \r
+  IN OUT   CHAR16 **DestList,\r
   IN OUT   UINTN  *DestSize,\r
   IN CONST CHAR16 *Item\r
   )\r
@@ -116,7 +116,7 @@ LexicalInsertIntoList(
 **/\r
 EFI_STATUS\r
 CopyListOfCommandNames(\r
-  IN OUT   CHAR16       **DestList, \r
+  IN OUT   CHAR16       **DestList,\r
   IN OUT   UINTN        *DestSize,\r
   IN CONST COMMAND_LIST *SourceList\r
   )\r
@@ -146,7 +146,7 @@ CopyListOfCommandNames(
 STATIC\r
 EFI_STATUS\r
 CopyListOfCommandNamesWithDynamic(\r
-  IN OUT  CHAR16** DestList, \r
+  IN OUT  CHAR16** DestList,\r
   IN OUT  UINTN    *DestSize\r
   )\r
 {\r
@@ -325,7 +325,7 @@ ShellCommandRunHelp (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel3HiiHandle, L"help", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel3HiiHandle, L"help", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -339,10 +339,10 @@ ShellCommandRunHelp (
       &&ShellCommandLineGetFlag(Package, L"-section")\r
       &&(ShellCommandLineGetFlag(Package, L"-verbose") || ShellCommandLineGetFlag(Package, L"-v"))\r
      ){\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CON), gShellLevel3HiiHandle, L"help");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_CON), gShellLevel3HiiHandle, L"help");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else if (ShellCommandLineGetRawValue(Package, 2) != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel3HiiHandle, L"help");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel3HiiHandle, L"help");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       //\r
@@ -396,7 +396,7 @@ ShellCommandRunHelp (
         CopyListOfCommandNames(&SortedCommandList, &SortedCommandListSize, ShellCommandGetCommandList(TRUE));\r
         CopyListOfCommandNamesWithDynamic(&SortedCommandList, &SortedCommandListSize);\r
 \r
-        for (CurrentCommand = SortedCommandList \r
+        for (CurrentCommand = SortedCommandList\r
           ; CurrentCommand != NULL && CurrentCommand < SortedCommandList + SortedCommandListSize/sizeof(CHAR16) && *CurrentCommand != CHAR_NULL\r
           ; CurrentCommand += StrLen(CurrentCommand) + 1\r
           ) {\r
@@ -405,7 +405,7 @@ ShellCommandRunHelp (
           //\r
           if (ShellGetExecutionBreakFlag ()) {\r
             break;\r
-          } \r
+          }\r
 \r
           if ((gUnicodeCollation->MetaiMatch(gUnicodeCollation, (CHAR16*)CurrentCommand, CommandToGetHelpOn)) ||\r
              (gEfiShellProtocol->GetAlias(CommandToGetHelpOn, NULL) != NULL && (gUnicodeCollation->MetaiMatch(gUnicodeCollation, (CHAR16*)CurrentCommand, (CHAR16*)(gEfiShellProtocol->GetAlias(CommandToGetHelpOn, NULL)))))) {\r
index ab597060e2132d3da43a5a3bf6ad2385c9a88b70..7a24e501042392c40e52fbf42b1d3b975c39ceb6 100644 (file)
@@ -2,7 +2,7 @@
   Main file for Pause shell level 3 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -53,7 +53,7 @@ ShellCommandRunPause (
   ASSERT_EFI_ERROR(Status);\r
 \r
   if (!gEfiShellProtocol->BatchIsActive()) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_NO_SCRIPT), gShellLevel3HiiHandle, L"pause");  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_NO_SCRIPT), gShellLevel3HiiHandle, L"pause");\r
     return (SHELL_UNSUPPORTED);\r
   }\r
 \r
@@ -63,7 +63,7 @@ ShellCommandRunPause (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel3HiiHandle, L"pause", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel3HiiHandle, L"pause", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -76,7 +76,7 @@ ShellCommandRunPause (
     if (ShellCommandLineGetFlag(Package, L"-?")) {\r
       ASSERT(FALSE);\r
     } else if (ShellCommandLineGetRawValue(Package, 1) != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel3HiiHandle, L"pause");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel3HiiHandle, L"pause");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       if (!ShellCommandLineGetFlag(Package, L"-q")) {\r
index 639346fb31eff120510e6c3672090d1fe8d24f1d..1e8f4bdb358f4b91950e941601c80cb6e6bf561c 100644 (file)
@@ -2,7 +2,7 @@
   Main file for Touch shell level 3 function.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -98,7 +98,7 @@ DoTouchByHandle (
   //\r
   Status = TouchFileByHandle(Handle);\r
   if (EFI_ERROR(Status)) {\r
-    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellLevel3HiiHandle, L"touch", Name);  \r
+    ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellLevel3HiiHandle, L"touch", Name);\r
     return (Status);\r
   }\r
 \r
@@ -128,7 +128,7 @@ DoTouchByHandle (
         //\r
         Status = gEfiShellProtocol->OpenFileByName (Walker->FullName, &Walker->Handle, EFI_FILE_MODE_READ|EFI_FILE_MODE_WRITE);\r
         if (EFI_ERROR(Status)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellLevel3HiiHandle, L"touch", Walker->FullName);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellLevel3HiiHandle, L"touch", Walker->FullName);\r
           Status = EFI_ACCESS_DENIED;\r
         } else {\r
           Status = DoTouchByHandle(Walker->FullName, FS, Walker->Handle, TRUE);\r
@@ -196,7 +196,7 @@ ShellCommandRunTouch (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel3HiiHandle, L"touch", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel3HiiHandle, L"touch", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -213,7 +213,7 @@ ShellCommandRunTouch (
       //\r
       // we insufficient parameters\r
       //\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel3HiiHandle, L"touch");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel3HiiHandle, L"touch");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       //\r
@@ -226,7 +226,7 @@ ShellCommandRunTouch (
          ){\r
         Status = ShellOpenFileMetaArg((CHAR16*)Param, EFI_FILE_MODE_READ|EFI_FILE_MODE_WRITE, &FileList);\r
         if (EFI_ERROR(Status)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel3HiiHandle, L"touch", (CHAR16*)Param);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel3HiiHandle, L"touch", (CHAR16*)Param);\r
           ShellStatus = SHELL_NOT_FOUND;\r
           break;\r
         }\r
@@ -239,7 +239,7 @@ ShellCommandRunTouch (
           // check that we have at least 1 file\r
           //\r
           if (FileList == NULL || IsListEmpty(&FileList->Link)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_NF), gShellLevel3HiiHandle, L"touch", Param);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_NF), gShellLevel3HiiHandle, L"touch", Param);\r
             continue;\r
           } else {\r
             //\r
@@ -253,14 +253,14 @@ ShellCommandRunTouch (
               // make sure the file opened ok\r
               //\r
               if (EFI_ERROR(Node->Status)){\r
-                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellLevel3HiiHandle, L"touch", Node->FileName);  \r
+                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellLevel3HiiHandle, L"touch", Node->FileName);\r
                 ShellStatus = SHELL_NOT_FOUND;\r
                 continue;\r
               }\r
 \r
               Status = DoTouchByHandle(Node->FullName, NULL, Node->Handle, ShellCommandLineGetFlag(Package, L"-r"));\r
               if (EFI_ERROR(Status) && Status != EFI_ACCESS_DENIED) {\r
-                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellLevel3HiiHandle, L"touch", Node->FileName);  \r
+                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellLevel3HiiHandle, L"touch", Node->FileName);\r
                 ShellStatus = SHELL_NOT_FOUND;\r
               }\r
             }\r
index 50d18e45aacd80ac1cceb57ca468df9882bec13d..854c25a103e309f1915b9a128c6cc083a1b46022 100644 (file)
@@ -2,7 +2,7 @@
   Main file for Type shell level 3 function.\r
 \r
   (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -83,7 +83,7 @@ TypeFileByHandle (
           //\r
           // Allow Line Feed (LF) (0xA) & Carriage Return (CR) (0xD)\r
           // characters to be displayed as is.\r
-          // \r
+          //\r
           if (AsciiChar == '\n' && ((CHAR8*)Buffer)[LoopVar-1] != '\r') {\r
             //\r
             // In case Line Feed (0xA) is encountered & Carriage Return (0xD)\r
@@ -114,7 +114,7 @@ TypeFileByHandle (
       } else {\r
         LoopSize = ReadSize / (sizeof (CHAR16));\r
       }\r
-      \r
+\r
       for (LoopVar = 0 ; LoopVar < LoopSize ; LoopVar++) {\r
         //\r
         // An invalid range of characters is 0x0-0x1F.\r
@@ -126,7 +126,7 @@ TypeFileByHandle (
           //\r
           // Allow Line Feed (LF) (0xA) & Carriage Return (CR) (0xD)\r
           // characters to be displayed as is.\r
-          // \r
+          //\r
           if (Ucs2Char == '\n' && ((CHAR16*)Buffer)[LoopVar-1] != '\r') {\r
             //\r
             // In case Line Feed (0xA) is encountered & Carriage Return (0xD)\r
@@ -137,7 +137,7 @@ TypeFileByHandle (
             ShellPrintEx (-1, -1, L"\r\n");\r
             continue;\r
           }\r
-        } \r
+        }\r
         else if (Ucs2Char < 0x20) {\r
           //\r
           // For all other characters which are not printable, display '.'\r
@@ -207,7 +207,7 @@ ShellCommandRunType (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel3HiiHandle, L"type", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel3HiiHandle, L"type", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -224,13 +224,13 @@ ShellCommandRunType (
     UnicodeMode = ShellCommandLineGetFlag(Package, L"-u");\r
 \r
     if (AsciiMode && UnicodeMode) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel3HiiHandle, L"type", L"-a & -u");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellLevel3HiiHandle, L"type", L"-a & -u");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
    } else if (ShellCommandLineGetRawValue(Package, 1) == NULL) {\r
       //\r
       // we insufficient parameters\r
       //\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel3HiiHandle, L"type");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellLevel3HiiHandle, L"type");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       //\r
@@ -243,7 +243,7 @@ ShellCommandRunType (
          ){\r
         Status = ShellOpenFileMetaArg((CHAR16*)Param, EFI_FILE_MODE_READ, &FileList);\r
         if (EFI_ERROR(Status)) {\r
-          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellLevel3HiiHandle, L"type", (CHAR16*)Param);  \r
+          ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellLevel3HiiHandle, L"type", (CHAR16*)Param);\r
           ShellStatus = SHELL_NOT_FOUND;\r
           break;\r
         }\r
@@ -256,7 +256,7 @@ ShellCommandRunType (
           // check that we have at least 1 file\r
           //\r
           if (FileList == NULL || IsListEmpty(&FileList->Link)) {\r
-            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_NF), gShellLevel3HiiHandle, L"type", Param);  \r
+            ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_NF), gShellLevel3HiiHandle, L"type", Param);\r
             continue;\r
           } else {\r
             //\r
@@ -275,7 +275,7 @@ ShellCommandRunType (
               // make sure the file opened ok\r
               //\r
               if (EFI_ERROR(Node->Status)){\r
-                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellLevel3HiiHandle, L"type", Node->FileName);  \r
+                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_FILE_OPEN_FAIL), gShellLevel3HiiHandle, L"type", Node->FileName);\r
                 ShellStatus = SHELL_NOT_FOUND;\r
                 continue;\r
               }\r
@@ -284,7 +284,7 @@ ShellCommandRunType (
               // make sure its not a directory\r
               //\r
               if (FileHandleIsDirectory(Node->Handle) == EFI_SUCCESS) {\r
-                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_IS_DIR), gShellLevel3HiiHandle, L"type", Node->FileName);  \r
+                ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_IS_DIR), gShellLevel3HiiHandle, L"type", Node->FileName);\r
                 ShellStatus = SHELL_NOT_FOUND;\r
                 continue;\r
               }\r
index d0e2b5cb24268dd47cbe499f93ac9f232be4ad70..0bf79432fd3164fbcf25a1729fa29881cd241643 100644 (file)
@@ -3,7 +3,7 @@
 \r
   (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
   (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -64,7 +64,7 @@ ShellCommandRunVer (
   Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);\r
   if (EFI_ERROR(Status)) {\r
     if (Status == EFI_VOLUME_CORRUPTED && ProblemParam != NULL) {\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel3HiiHandle, L"ver", ProblemParam);  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PROBLEM), gShellLevel3HiiHandle, L"ver", ProblemParam);\r
       FreePool(ProblemParam);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
@@ -81,7 +81,7 @@ ShellCommandRunVer (
       //\r
       // we have too many parameters\r
       //\r
-      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel3HiiHandle, L"ver");  \r
+      ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellLevel3HiiHandle, L"ver");\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
     } else {\r
       if (ShellCommandLineGetFlag(Package, L"-s")) {\r
index e53985e2d71406a45970fd618927f36e280dc0a9..3c24ba1742bf1362f51f0adc643ff6b8391400ea 100644 (file)
@@ -2158,22 +2158,22 @@ InternalCommandLineParse (
       }\r
       CurrentItemPackage->Value = NewValue;\r
       if (ValueSize == 0) {\r
-        StrCpyS( CurrentItemPackage->Value, \r
-                  CurrentValueSize/sizeof(CHAR16), \r
+        StrCpyS( CurrentItemPackage->Value,\r
+                  CurrentValueSize/sizeof(CHAR16),\r
                   Argv[LoopCounter]\r
                   );\r
       } else {\r
-        StrCatS( CurrentItemPackage->Value, \r
-                  CurrentValueSize/sizeof(CHAR16), \r
+        StrCatS( CurrentItemPackage->Value,\r
+                  CurrentValueSize/sizeof(CHAR16),\r
                   L" "\r
                   );\r
-        StrCatS( CurrentItemPackage->Value, \r
-                  CurrentValueSize/sizeof(CHAR16), \r
+        StrCatS( CurrentItemPackage->Value,\r
+                  CurrentValueSize/sizeof(CHAR16),\r
                   Argv[LoopCounter]\r
                   );\r
       }\r
       ValueSize += StrSize(Argv[LoopCounter]) + sizeof(CHAR16);\r
-      \r
+\r
       GetItemValue--;\r
       if (GetItemValue == 0) {\r
         InsertHeadList(*CheckPackage, &CurrentItemPackage->Link);\r
@@ -2732,10 +2732,10 @@ InternalPrintTo (
     return (gEfiShellProtocol->WriteFile(gEfiShellParametersProtocol->StdOut, &Size, (VOID*)String));\r
   }\r
   if (mEfiShellInterface          != NULL) {\r
-    if (mEfiShellInterface->RedirArgc == 0) { \r
+    if (mEfiShellInterface->RedirArgc == 0) {\r
     //\r
     // Divide in half for old shell.  Must be string length not size.\r
-      // \r
+      //\r
       Size /=2;  // Divide in half only when no redirection.\r
     }\r
     return (mEfiShellInterface->StdOut->Write(mEfiShellInterface->StdOut,          &Size, (VOID*)String));\r
@@ -3173,7 +3173,7 @@ ShellHexStrToUintn(
   if (!EFI_ERROR(ShellConvertStringToUint64(String, &RetVal, TRUE, TRUE))) {\r
     return ((UINTN)RetVal);\r
   }\r
-  \r
+\r
   return ((UINTN)(-1));\r
 }\r
 \r
@@ -3312,7 +3312,7 @@ StrnCatGrow (
   if (*Destination == NULL) {\r
     return (NULL);\r
   }\r
-  \r
+\r
   StrnCatS(*Destination, NewSize/sizeof(CHAR16), Source, Count);\r
   return *Destination;\r
 }\r
@@ -3944,7 +3944,7 @@ InternalShellStrDecimalToUint64 (
   Result = 0;\r
 \r
   //\r
-  // Stop upon space if requested \r
+  // Stop upon space if requested\r
   // (if the whole value was 0)\r
   //\r
   if (StopAtSpace && *String == L' ') {\r
@@ -4255,7 +4255,7 @@ ShellFileHandleReadLine(
 \r
   @param[in] CommandToGetHelpOn  Pointer to a string containing the command name of help file to be printed.\r
   @param[in] SectionToGetHelpOn  Pointer to the section specifier(s).\r
-  @param[in] PrintCommandText    If TRUE, prints the command followed by the help content, otherwise prints \r
+  @param[in] PrintCommandText    If TRUE, prints the command followed by the help content, otherwise prints\r
                                  the help content only.\r
   @retval EFI_DEVICE_ERROR       The help data format was incorrect.\r
   @retval EFI_NOT_FOUND          The help data could not be found.\r
@@ -4269,33 +4269,33 @@ ShellPrintHelp (
   IN BOOLEAN          PrintCommandText\r
   )\r
 {\r
-       EFI_STATUS          Status;\r
-       CHAR16              *OutText;\r
-         \r
-       OutText = NULL;\r
-       \r
+  EFI_STATUS          Status;\r
+  CHAR16              *OutText;\r
+\r
+  OutText = NULL;\r
+\r
   //\r
   // Get the string to print based\r
   //\r
-       Status = gEfiShellProtocol->GetHelpText (CommandToGetHelpOn, SectionToGetHelpOn, &OutText);\r
-  \r
+  Status = gEfiShellProtocol->GetHelpText (CommandToGetHelpOn, SectionToGetHelpOn, &OutText);\r
+\r
   //\r
   // make sure we got a valid string\r
   //\r
   if (EFI_ERROR(Status)){\r
     return Status;\r
-       } \r
+  }\r
   if (OutText == NULL || StrLen(OutText) == 0) {\r
-    return EFI_NOT_FOUND;  \r
-       }\r
-  \r
+    return EFI_NOT_FOUND;\r
+  }\r
+\r
   //\r
   // Chop off trailing stuff we dont need\r
   //\r
   while (OutText[StrLen(OutText)-1] == L'\r' || OutText[StrLen(OutText)-1] == L'\n' || OutText[StrLen(OutText)-1] == L' ') {\r
     OutText[StrLen(OutText)-1] = CHAR_NULL;\r
   }\r
-  \r
+\r
   //\r
   // Print this out to the console\r
   //\r
@@ -4304,17 +4304,17 @@ ShellPrintHelp (
   } else {\r
     ShellPrintEx(-1, -1, L"%N%s\r\n", OutText);\r
   }\r
-  \r
+\r
   SHELL_FREE_NON_NULL(OutText);\r
 \r
-       return EFI_SUCCESS;\r
+  return EFI_SUCCESS;\r
 }\r
 \r
 /**\r
   Function to delete a file by name\r
-  \r
+\r
   @param[in]       FileName       Pointer to file name to delete.\r
-  \r
+\r
   @retval EFI_SUCCESS             the file was deleted sucessfully\r
   @retval EFI_WARN_DELETE_FAILURE the handle was closed, but the file was not\r
                                   deleted\r
@@ -4341,26 +4341,26 @@ ShellDeleteFileByName(
 {\r
   EFI_STATUS                Status;\r
   SHELL_FILE_HANDLE         FileHandle;\r
-  \r
+\r
   Status = ShellFileExists(FileName);\r
-  \r
+\r
   if (Status == EFI_SUCCESS){\r
     Status = ShellOpenFileByName(FileName, &FileHandle, EFI_FILE_MODE_READ | EFI_FILE_MODE_WRITE | EFI_FILE_MODE_CREATE, 0x0);\r
     if (Status == EFI_SUCCESS){\r
       Status = ShellDeleteFile(&FileHandle);\r
     }\r
-  } \r
+  }\r
 \r
   return(Status);\r
-  \r
+\r
 }\r
 \r
 /**\r
   Cleans off all the quotes in the string.\r
 \r
   @param[in]     OriginalString   pointer to the string to be cleaned.\r
-  @param[out]   CleanString      The new string with all quotes removed. \r
-                                                  Memory allocated in the function and free \r
+  @param[out]   CleanString      The new string with all quotes removed.\r
+                                                  Memory allocated in the function and free\r
                                                   by caller.\r
 \r
   @retval EFI_SUCCESS   The operation was successful.\r
@@ -4372,7 +4372,7 @@ InternalShellStripQuotes (
   )\r
 {\r
   CHAR16            *Walker;\r
-  \r
+\r
   if (OriginalString == NULL || CleanString == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
index fca6b7b7e2b3ddbfc3effe98a14f972ed5429697..97ea1db57a381fcc34db17d961dde960b3ca7234 100644 (file)
@@ -2,7 +2,7 @@
   Provides interface to shell functionality for shell commands and applications.\r
 \r
   (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
-  Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -79,8 +79,8 @@ InternalShellIsHexOrDecimalNumber (
   Cleans off all the quotes in the string.\r
 \r
   @param[in]     OriginalString   pointer to the string to be cleaned.\r
-  @param[out]   CleanString      The new string with all quotes removed. \r
-                                                  Memory allocated in the function and free \r
+  @param[out]   CleanString      The new string with all quotes removed.\r
+                                                  Memory allocated in the function and free\r
                                                   by caller.\r
 \r
   @retval EFI_SUCCESS   The operation was successful.\r
index ab6ab8b57ea251b939a04592453f9e4d016861b4..52415e0ad0ca931f1c73eaad788041df3edbcbff 100644 (file)
@@ -2,7 +2,7 @@
   The implementation for Shell command ifconfig based on IP4Config2 protocol.\r
 \r
   (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -45,7 +45,7 @@ typedef struct _IFCONFIG_INTERFACE_CB {
   EFI_HANDLE                                  NicHandle;\r
   LIST_ENTRY                                  Link;\r
   EFI_IP4_CONFIG2_PROTOCOL                    *IfCfg;\r
-  EFI_IP4_CONFIG2_INTERFACE_INFO              *IfInfo; \r
+  EFI_IP4_CONFIG2_INTERFACE_INFO              *IfInfo;\r
   EFI_IP4_CONFIG2_POLICY                      Policy;\r
   UINT32                                      DnsCnt;\r
   EFI_IPv4_ADDRESS                            DnsAddr[1];\r
@@ -399,7 +399,7 @@ IfConfigGetInterfaceInfo (
     if (EFI_ERROR (Status)) {\r
       goto ON_ERROR;\r
     }\r
-    \r
+\r
     //\r
     // Get the interface information size.\r
     //\r
@@ -420,7 +420,7 @@ IfConfigGetInterfaceInfo (
       Status = EFI_OUT_OF_RESOURCES;\r
       goto ON_ERROR;\r
     }\r
-    \r
+\r
     //\r
     // Get the interface info.\r
     //\r
@@ -434,7 +434,7 @@ IfConfigGetInterfaceInfo (
     if (EFI_ERROR (Status)) {\r
       goto ON_ERROR;\r
     }\r
-    \r
+\r
     //\r
     // Check the interface name if required.\r
     //\r
@@ -444,7 +444,7 @@ IfConfigGetInterfaceInfo (
     }\r
 \r
     DataSize = 0;\r
-    \r
+\r
     //\r
     // Get the size of dns server list.\r
     //\r
@@ -553,7 +553,7 @@ IfConfigShowInterfaceInfo (
   EFI_STATUS                    MediaStatus;\r
   EFI_IPv4_ADDRESS              Gateway;\r
   UINT32                        Index;\r
-  \r
+\r
   MediaStatus = EFI_SUCCESS;\r
 \r
   if (IsListEmpty (IfList)) {\r
@@ -571,7 +571,7 @@ IfConfigShowInterfaceInfo (
     //\r
     // Print interface name.\r
     //\r
-    ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_IFCONFIG_INFO_IF_NAME), gShellNetwork1HiiHandle, IfCb->IfInfo->Name); \r
+    ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_IFCONFIG_INFO_IF_NAME), gShellNetwork1HiiHandle, IfCb->IfInfo->Name);\r
 \r
     //\r
     // Get Media State.\r
@@ -611,10 +611,10 @@ IfConfigShowInterfaceInfo (
     ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_IFCONFIG_INFO_IP_ADDR_HEAD), gShellNetwork1HiiHandle);\r
 \r
     ShellPrintHiiEx(\r
-      -1, \r
-      -1, \r
+      -1,\r
+      -1,\r
       NULL,\r
-      STRING_TOKEN (STR_IFCONFIG_INFO_IP_ADDR_BODY), \r
+      STRING_TOKEN (STR_IFCONFIG_INFO_IP_ADDR_BODY),\r
       gShellNetwork1HiiHandle,\r
       (UINTN)IfCb->IfInfo->StationAddress.Addr[0],\r
       (UINTN)IfCb->IfInfo->StationAddress.Addr[1],\r
@@ -628,10 +628,10 @@ IfConfigShowInterfaceInfo (
     ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_IFCONFIG_INFO_SUBNET_MASK_HEAD), gShellNetwork1HiiHandle);\r
 \r
     ShellPrintHiiEx(\r
-      -1, \r
-      -1, \r
+      -1,\r
+      -1,\r
       NULL,\r
-      STRING_TOKEN (STR_IFCONFIG_INFO_IP_ADDR_BODY), \r
+      STRING_TOKEN (STR_IFCONFIG_INFO_IP_ADDR_BODY),\r
       gShellNetwork1HiiHandle,\r
       (UINTN)IfCb->IfInfo->SubnetMask.Addr[0],\r
       (UINTN)IfCb->IfInfo->SubnetMask.Addr[1],\r
@@ -645,26 +645,26 @@ IfConfigShowInterfaceInfo (
     ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_IFCONFIG_INFO_GATEWAY_HEAD), gShellNetwork1HiiHandle);\r
 \r
     ZeroMem (&Gateway, sizeof (EFI_IPv4_ADDRESS));\r
-    \r
+\r
     for (Index = 0; Index < IfCb->IfInfo->RouteTableSize; Index++) {\r
       if ((CompareMem (&IfCb->IfInfo->RouteTable[Index].SubnetAddress, &mZeroIp4Addr, sizeof (EFI_IPv4_ADDRESS)) == 0) &&\r
           (CompareMem (&IfCb->IfInfo->RouteTable[Index].SubnetMask   , &mZeroIp4Addr, sizeof (EFI_IPv4_ADDRESS)) == 0) ){\r
         CopyMem (&Gateway, &IfCb->IfInfo->RouteTable[Index].GatewayAddress, sizeof (EFI_IPv4_ADDRESS));\r
       }\r
-    }    \r
+    }\r
 \r
     ShellPrintHiiEx(\r
-      -1, \r
-      -1, \r
+      -1,\r
+      -1,\r
       NULL,\r
-      STRING_TOKEN (STR_IFCONFIG_INFO_IP_ADDR_BODY), \r
+      STRING_TOKEN (STR_IFCONFIG_INFO_IP_ADDR_BODY),\r
       gShellNetwork1HiiHandle,\r
       (UINTN)Gateway.Addr[0],\r
       (UINTN)Gateway.Addr[1],\r
       (UINTN)Gateway.Addr[2],\r
       (UINTN)Gateway.Addr[3]\r
       );\r
-      \r
+\r
     //\r
     // Print route table entry.\r
     //\r
@@ -674,11 +674,11 @@ IfConfigShowInterfaceInfo (
       ShellPrintHiiEx(-1, -1, NULL,STRING_TOKEN (STR_IFCONFIG_ROUTES_ENTRY_INDEX), gShellNetwork1HiiHandle, Index);\r
 \r
       ShellPrintHiiEx(\r
-        -1, \r
-        -1, \r
+        -1,\r
+        -1,\r
         NULL,\r
-        STRING_TOKEN (STR_IFCONFIG_SHOW_IP_ADDR), \r
-        gShellNetwork1HiiHandle, \r
+        STRING_TOKEN (STR_IFCONFIG_SHOW_IP_ADDR),\r
+        gShellNetwork1HiiHandle,\r
         L"Subnet ",\r
         (UINTN)IfCb->IfInfo->RouteTable[Index].SubnetAddress.Addr[0],\r
         (UINTN)IfCb->IfInfo->RouteTable[Index].SubnetAddress.Addr[1],\r
@@ -687,11 +687,11 @@ IfConfigShowInterfaceInfo (
         );\r
 \r
       ShellPrintHiiEx(\r
-        -1, \r
-        -1, \r
+        -1,\r
+        -1,\r
         NULL,\r
-        STRING_TOKEN (STR_IFCONFIG_SHOW_IP_ADDR), \r
-        gShellNetwork1HiiHandle, \r
+        STRING_TOKEN (STR_IFCONFIG_SHOW_IP_ADDR),\r
+        gShellNetwork1HiiHandle,\r
         L"Netmask",\r
         (UINTN)IfCb->IfInfo->RouteTable[Index].SubnetMask.Addr[0],\r
         (UINTN)IfCb->IfInfo->RouteTable[Index].SubnetMask.Addr[1],\r
@@ -700,11 +700,11 @@ IfConfigShowInterfaceInfo (
         );\r
 \r
       ShellPrintHiiEx(\r
-        -1, \r
-        -1, \r
+        -1,\r
+        -1,\r
         NULL,\r
-        STRING_TOKEN (STR_IFCONFIG_SHOW_IP_ADDR), \r
-        gShellNetwork1HiiHandle, \r
+        STRING_TOKEN (STR_IFCONFIG_SHOW_IP_ADDR),\r
+        gShellNetwork1HiiHandle,\r
         L"Gateway",\r
         (UINTN)IfCb->IfInfo->RouteTable[Index].GatewayAddress.Addr[0],\r
         (UINTN)IfCb->IfInfo->RouteTable[Index].GatewayAddress.Addr[1],\r
@@ -720,10 +720,10 @@ IfConfigShowInterfaceInfo (
 \r
     for (Index = 0; Index < IfCb->DnsCnt; Index++) {\r
       ShellPrintHiiEx(\r
-        -1, \r
-        -1, \r
+        -1,\r
+        -1,\r
         NULL,\r
-        STRING_TOKEN (STR_IFCONFIG_INFO_DNS_ADDR_BODY), \r
+        STRING_TOKEN (STR_IFCONFIG_INFO_DNS_ADDR_BODY),\r
         gShellNetwork1HiiHandle,\r
         (UINTN) IfCb->DnsAddr[Index].Addr[0],\r
         (UINTN) IfCb->DnsAddr[Index].Addr[1],\r
@@ -734,7 +734,7 @@ IfConfigShowInterfaceInfo (
       ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_IFCONFIG_INFO_NEWLINE), gShellNetwork1HiiHandle);\r
     }\r
   }\r
-  \r
+\r
   ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_IFCONFIG_INFO_BREAK), gShellNetwork1HiiHandle);\r
 \r
   return SHELL_SUCCESS;\r
@@ -756,13 +756,13 @@ IfConfigClearInterfaceInfo (
   IN CHAR16        *IfName\r
   )\r
 {\r
-  EFI_STATUS                Status;  \r
+  EFI_STATUS                Status;\r
   SHELL_STATUS              ShellStatus;\r
   LIST_ENTRY                *Entry;\r
   LIST_ENTRY                *Next;\r
   IFCONFIG_INTERFACE_CB     *IfCb;\r
   EFI_IP4_CONFIG2_POLICY    Policy;\r
-  \r
+\r
   Status = EFI_SUCCESS;\r
   ShellStatus = SHELL_SUCCESS;\r
 \r
@@ -772,7 +772,7 @@ IfConfigClearInterfaceInfo (
 \r
   //\r
   // Go through the interface list.\r
-  // If the interface name is specified, DHCP DORA process will be \r
+  // If the interface name is specified, DHCP DORA process will be\r
   // triggered by the policy transition (static -> dhcp).\r
   //\r
   NET_LIST_FOR_EACH_SAFE (Entry, Next, IfList) {\r
@@ -780,7 +780,7 @@ IfConfigClearInterfaceInfo (
 \r
     if ((IfName != NULL) && (StrCmp (IfName, IfCb->IfInfo->Name) == 0)) {\r
       Policy = Ip4Config2PolicyStatic;\r
-      \r
+\r
       Status = IfCb->IfCfg->SetData (\r
                               IfCb->IfCfg,\r
                               Ip4Config2DataTypePolicy,\r
@@ -791,11 +791,11 @@ IfConfigClearInterfaceInfo (
         ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_ERR_AD), gShellNetwork1HiiHandle, L"ifconfig");\r
         ShellStatus = SHELL_ACCESS_DENIED;\r
         break;\r
-      }  \r
+      }\r
     }\r
 \r
     Policy = Ip4Config2PolicyDhcp;\r
-    \r
+\r
     Status = IfCb->IfCfg->SetData (\r
                             IfCb->IfCfg,\r
                             Ip4Config2DataTypePolicy,\r
@@ -854,7 +854,7 @@ IfConfigSetInterfaceInfo (
     ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_IFCONFIG_INVALID_INTERFACE), gShellNetwork1HiiHandle);\r
     return SHELL_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   //\r
   // Make sure to set only one interface each time.\r
   //\r
@@ -944,7 +944,7 @@ IfConfigSetInterfaceInfo (
       }\r
 \r
       VarArg = VarArg->Next;\r
-      continue;   \r
+      continue;\r
     }\r
 \r
     //\r
@@ -966,8 +966,8 @@ IfConfigSetInterfaceInfo (
         ShellStatus = SHELL_ACCESS_DENIED;\r
         goto ON_EXIT;\r
       }\r
-      \r
-      VarArg= VarArg->Next;    \r
+\r
+      VarArg= VarArg->Next;\r
 \r
     } else if (StrCmp (VarArg->Arg, L"static") == 0) {\r
       VarArg= VarArg->Next;\r
@@ -978,7 +978,7 @@ IfConfigSetInterfaceInfo (
       }\r
 \r
       ZeroMem (&ManualAddress, sizeof (ManualAddress));\r
-    \r
+\r
       //\r
       // Get manual IP address.\r
       //\r
@@ -991,14 +991,14 @@ IfConfigSetInterfaceInfo (
 \r
       //\r
       // Get subnetmask.\r
-      //    \r
+      //\r
       VarArg = VarArg->Next;\r
       if (VarArg == NULL) {\r
         ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_IFCONFIG_LACK_COMMAND), gShellNetwork1HiiHandle);\r
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         goto ON_EXIT;\r
       }\r
-      \r
+\r
       Status = NetLibStrToIp4 (VarArg->Arg, &ManualAddress.SubnetMask);\r
       if (EFI_ERROR(Status)) {\r
         ShellPrintHiiEx(-1, -1, NULL,STRING_TOKEN (STR_IFCONFIG_INVALID_IPADDRESS), gShellNetwork1HiiHandle, VarArg->Arg);\r
@@ -1015,7 +1015,7 @@ IfConfigSetInterfaceInfo (
         ShellStatus = SHELL_INVALID_PARAMETER;\r
         goto ON_EXIT;\r
       }\r
-      \r
+\r
       Status = NetLibStrToIp4 (VarArg->Arg, &Gateway);\r
       if (EFI_ERROR(Status)) {\r
         ShellPrintHiiEx(-1, -1, NULL,STRING_TOKEN (STR_IFCONFIG_INVALID_IPADDRESS), gShellNetwork1HiiHandle, VarArg->Arg);\r
@@ -1053,7 +1053,7 @@ IfConfigSetInterfaceInfo (
         ShellStatus = SHELL_ACCESS_DENIED;\r
         goto ON_EXIT;\r
       }\r
-      \r
+\r
       //\r
       // Set Manual Address.\r
       //\r
@@ -1095,7 +1095,7 @@ IfConfigSetInterfaceInfo (
                      Ip4Config2DataTypeManualAddress,\r
                      MappedEvt\r
                      );\r
-      \r
+\r
       if (EFI_ERROR (Status)) {\r
         ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_IFCONFIG_SET_ADDR_FAILED), gShellNetwork1HiiHandle, Status);\r
         ShellStatus = SHELL_ACCESS_DENIED;\r
@@ -1118,9 +1118,9 @@ IfConfigSetInterfaceInfo (
         ShellStatus = SHELL_ACCESS_DENIED;\r
         goto ON_EXIT;\r
       }\r
-      \r
+\r
       VarArg = VarArg->Next;\r
-      \r
+\r
     } else if (StrCmp (VarArg->Arg, L"dns") == 0) {\r
       //\r
       // Get DNS addresses.\r
@@ -1151,7 +1151,7 @@ IfConfigSetInterfaceInfo (
         Index ++;\r
         Tmp = Tmp->Next;\r
       }\r
-      \r
+\r
       VarArg = Tmp;\r
 \r
       //\r
@@ -1177,7 +1177,7 @@ ON_EXIT:
   if (Dns != NULL) {\r
     FreePool (Dns);\r
   }\r
-  \r
+\r
   return ShellStatus;\r
 \r
 }\r
@@ -1209,7 +1209,7 @@ IfConfig (
              &Private->IfList\r
              );\r
   if (EFI_ERROR (Status)) {\r
-    ShellStatus = SHELL_NOT_FOUND; \r
+    ShellStatus = SHELL_NOT_FOUND;\r
     goto ON_EXIT;\r
   }\r
 \r
@@ -1289,7 +1289,7 @@ IfConfigCleanup (
 \r
   @retval EFI_SUCCESS    ifconfig command processed successfully.\r
   @retval others         The ifconfig command process failed.\r
-  \r
+\r
 **/\r
 SHELL_STATUS\r
 EFIAPI\r
@@ -1306,7 +1306,7 @@ ShellCommandRunIfconfig (
   ARG_LIST                  *ArgList;\r
   CHAR16                    *ProblemParam;\r
   CHAR16                    *Str;\r
-  \r
+\r
   Status = EFI_INVALID_PARAMETER;\r
   Private = NULL;\r
   ShellStatus = SHELL_SUCCESS;\r
@@ -1320,7 +1320,7 @@ ShellCommandRunIfconfig (
     } else {\r
       ASSERT(FALSE);\r
     }\r
-    \r
+\r
     goto ON_EXIT;\r
   }\r
 \r
@@ -1395,7 +1395,7 @@ ShellCommandRunIfconfig (
       Private->IfName = Str;\r
     }\r
   }\r
-  \r
+\r
   //\r
   // To get interface name and corresponding Args for the set option.\r
   //\r
@@ -1406,7 +1406,7 @@ ShellCommandRunIfconfig (
       ShellStatus = SHELL_INVALID_PARAMETER;\r
       goto ON_EXIT;\r
     }\r
-    \r
+\r
     //\r
     // To split the configuration into multi-section.\r
     //\r
@@ -1428,7 +1428,7 @@ ShellCommandRunIfconfig (
       goto ON_EXIT;\r
     }\r
   }\r
-  \r
+\r
   //\r
   // Main process of ifconfig.\r
   //\r
@@ -1437,7 +1437,7 @@ ShellCommandRunIfconfig (
 ON_EXIT:\r
 \r
   ShellCommandLineFreeVarList (ParamPackage);\r
-  \r
+\r
   if (Private != NULL) {\r
     IfConfigCleanup (Private);\r
   }\r
index 46ba701fc544a754c9ddeed158111c0f8f4781c7..af7cadeb6fa71ae6869f7de5989ee9bf40673723 100644 (file)
@@ -2,7 +2,7 @@
   The implementation for Ping shell command.\r
 \r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
   (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
 \r
   This program and the accompanying materials\r
@@ -24,25 +24,25 @@ UINT64          mCurrentTick = 0;
 //\r
 // Function templates to match the IPv4 and IPv6 commands that we use.\r
 //\r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *PING_IPX_POLL)(\r
   IN VOID          *This\r
-  );  \r
+  );\r
 \r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *PING_IPX_TRANSMIT)(\r
   IN VOID          *This,\r
   IN VOID          *Token\r
   );\r
 \r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *PING_IPX_RECEIVE)(\r
   IN VOID          *This,\r
   IN VOID          *Token\r
-  ); \r
+  );\r
 \r
 typedef\r
 EFI_STATUS\r
@@ -52,7 +52,7 @@ EFI_STATUS
   );\r
 \r
 ///\r
-/// A set of pointers to either IPv6 or IPv4 functions.  \r
+/// A set of pointers to either IPv6 or IPv4 functions.\r
 /// Unknown which one to the ping command.\r
 ///\r
 typedef struct {\r
@@ -70,7 +70,7 @@ typedef union {
 \r
 //\r
 // PING_IPX_COMPLETION_TOKEN\r
-// structures are used for both transmit and receive operations. \r
+// structures are used for both transmit and receive operations.\r
 // This version is IP-unaware.\r
 //\r
 typedef struct {\r
@@ -119,7 +119,7 @@ typedef struct _PING_PRIVATE_DATA {
   EFI_EVENT                   Timer;\r
 \r
   UINT32                      TimerPeriod;\r
-  UINT32                      RttTimerTick;   \r
+  UINT32                      RttTimerTick;\r
   EFI_EVENT                   RttTimer;\r
 \r
   EFI_STATUS                  Status;\r
@@ -149,7 +149,7 @@ typedef struct _PING_PRIVATE_DATA {
   @param[in] Packet  Buffer which contains the data to be checksummed.\r
   @param[in] Length  Length to be checksummed.\r
 \r
-  @retval Checksum     Returns the 16 bit ones complement of \r
+  @retval Checksum     Returns the 16 bit ones complement of\r
                        ones complement sum of 16 bit words\r
 **/\r
 UINT16\r
@@ -325,7 +325,7 @@ PingInitRttTimer (
   if (Private->TimerPeriod == 0) {\r
     return EFI_ABORTED;\r
   }\r
-  \r
+\r
   Private->RttTimerTick = 0;\r
   Status = gBS->CreateEvent (\r
                   EVT_TIMER | EVT_NOTIFY_SIGNAL,\r
@@ -370,7 +370,7 @@ PingFreeRttTimer (
 \r
 /**\r
   Read the current time.\r
-  \r
+\r
   @param[in]    Private    The pointer to PING_PRIVATE_DATA.\r
 \r
   @retval the current tick value.\r
@@ -563,7 +563,7 @@ Ping6OnEchoReplyReceived (
     if (((EFI_IP6_RECEIVE_DATA*)Private->RxToken.Packet.RxData)->Header->NextHeader != IP6_ICMP) {\r
       goto ON_EXIT;\r
     }\r
-    if (!IP6_IS_MULTICAST ((EFI_IPv6_ADDRESS*)&Private->DstAddress) && \r
+    if (!IP6_IS_MULTICAST ((EFI_IPv6_ADDRESS*)&Private->DstAddress) &&\r
         !EFI_IP6_EQUAL (&((EFI_IP6_RECEIVE_DATA*)Private->RxToken.Packet.RxData)->Header->SourceAddress, (EFI_IPv6_ADDRESS*)&Private->DstAddress)) {\r
       goto ON_EXIT;\r
     }\r
@@ -574,7 +574,7 @@ Ping6OnEchoReplyReceived (
   } else {\r
     Reply   = ((EFI_IP4_RECEIVE_DATA*)Private->RxToken.Packet.RxData)->FragmentTable[0].FragmentBuffer;\r
     PayLoad = ((EFI_IP4_RECEIVE_DATA*)Private->RxToken.Packet.RxData)->DataLength;\r
-    if (!IP4_IS_MULTICAST (EFI_IP4(*(EFI_IPv4_ADDRESS*)Private->DstAddress)) && \r
+    if (!IP4_IS_MULTICAST (EFI_IP4(*(EFI_IPv4_ADDRESS*)Private->DstAddress)) &&\r
         !EFI_IP4_EQUAL (&((EFI_IP4_RECEIVE_DATA*)Private->RxToken.Packet.RxData)->Header->SourceAddress, (EFI_IPv4_ADDRESS*)&Private->DstAddress)) {\r
       goto ON_EXIT;\r
     }\r
@@ -583,7 +583,7 @@ Ping6OnEchoReplyReceived (
       goto ON_EXIT;\r
     }\r
   }\r
-  \r
+\r
 \r
   if (PayLoad != Private->BufferSize) {\r
     goto ON_EXIT;\r
@@ -689,7 +689,7 @@ PingGenerateToken (
   //\r
   Request->Type        = (UINT8)(Private->IpChoice==PING_IP_CHOICE_IP6?ICMP_V6_ECHO_REQUEST:ICMP_V4_ECHO_REQUEST);\r
   Request->Code        = 0;\r
-  Request->SequenceNum = SequenceNum; \r
+  Request->SequenceNum = SequenceNum;\r
   Request->Identifier  = 0;\r
   Request->Checksum    = 0;\r
 \r
@@ -1003,11 +1003,11 @@ PingCreateIpInstance (
   if (Private->IpChoice == PING_IP_CHOICE_IP6 ? NetIp6IsUnspecifiedAddr ((EFI_IPv6_ADDRESS*)&Private->SrcAddress) : \\r
       PingNetIp4IsUnspecifiedAddr ((EFI_IPv4_ADDRESS*)&Private->SrcAddress)) {\r
     //\r
-    // SrcAddress is unspecified. So, both connected and configured interface will be automatic selected. \r
+    // SrcAddress is unspecified. So, both connected and configured interface will be automatic selected.\r
     //\r
     UnspecifiedSrc = TRUE;\r
   }\r
-  \r
+\r
   //\r
   // Source address is required when pinging a link-local address.\r
   //\r
@@ -1020,12 +1020,12 @@ PingCreateIpInstance (
   } else {\r
     ASSERT(Private->IpChoice == PING_IP_CHOICE_IP4);\r
     if (PingNetIp4IsLinkLocalAddr ((EFI_IPv4_ADDRESS*)&Private->DstAddress) && UnspecifiedSrc) {\r
-      ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_PING_INVALID_SOURCE), gShellNetwork1HiiHandle); \r
+      ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_PING_INVALID_SOURCE), gShellNetwork1HiiHandle);\r
       Status = EFI_INVALID_PARAMETER;\r
       goto ON_ERROR;\r
     }\r
   }\r
-  \r
+\r
   //\r
   // For each ip6 protocol, check interface addresses list.\r
   //\r
@@ -1087,7 +1087,7 @@ PingCreateIpInstance (
                          NULL\r
                          );\r
     }\r
-    \r
+\r
     //\r
     // Skip the ones not in current use.\r
     //\r
@@ -1160,7 +1160,7 @@ PingCreateIpInstance (
       }\r
     } else {\r
       if (UnspecifiedSrc) {\r
-        if (!PingNetIp4IsUnspecifiedAddr (&((EFI_IP4_CONFIG2_INTERFACE_INFO*)IpXInterfaceInfo)->StationAddress) && \r
+        if (!PingNetIp4IsUnspecifiedAddr (&((EFI_IP4_CONFIG2_INTERFACE_INFO*)IpXInterfaceInfo)->StationAddress) &&\r
             !PingNetIp4IsLinkLocalAddr (&((EFI_IP4_CONFIG2_INTERFACE_INFO*)IpXInterfaceInfo)->StationAddress)) {\r
           //\r
           // Select the interface automatically.\r
@@ -1183,7 +1183,7 @@ PingCreateIpInstance (
   //\r
 \r
   if (HandleIndex == HandleNum) {\r
-    ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_PING_CONFIGD_NIC_NF), gShellNetwork1HiiHandle, L"ping");  \r
+    ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_PING_CONFIGD_NIC_NF), gShellNetwork1HiiHandle, L"ping");\r
     Status = EFI_NOT_FOUND;\r
     goto ON_ERROR;\r
   }\r
@@ -1281,7 +1281,7 @@ PingCreateIpInstance (
     Private->ProtocolPointers.Transmit  = (PING_IPX_TRANSMIT )((EFI_IP4_PROTOCOL*)Private->IpProtocol)->Transmit;\r
     Private->ProtocolPointers.Receive   = (PING_IPX_RECEIVE  )((EFI_IP4_PROTOCOL*)Private->IpProtocol)->Receive;\r
     Private->ProtocolPointers.Cancel    = (PING_IPX_CANCEL   )((EFI_IP4_PROTOCOL*)Private->IpProtocol)->Cancel;\r
-    Private->ProtocolPointers.Poll      = (PING_IPX_POLL     )((EFI_IP4_PROTOCOL*)Private->IpProtocol)->Poll;  \r
+    Private->ProtocolPointers.Poll      = (PING_IPX_POLL     )((EFI_IP4_PROTOCOL*)Private->IpProtocol)->Poll;\r
   }\r
 \r
   if (HandleBuffer != NULL) {\r
@@ -1432,7 +1432,7 @@ ShellPing (
     ShellStatus = SHELL_ACCESS_DENIED;\r
     goto ON_EXIT;\r
   }\r
-  \r
+\r
   //\r
   // Create a ipv6 token to send the first icmp6 echo request packet.\r
   //\r
@@ -1447,7 +1447,7 @@ ShellPing (
     } else if (Status == RETURN_NO_MAPPING) {\r
       ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_PING_NOROUTE_FOUND), gShellNetwork1HiiHandle, mDstString, mSrcString);\r
     } else {\r
-      ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_PING_NETWORK_ERROR), gShellNetwork1HiiHandle, L"ping", Status);  \r
+      ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_PING_NETWORK_ERROR), gShellNetwork1HiiHandle, L"ping", Status);\r
     }\r
 \r
     goto ON_EXIT;\r
@@ -1562,7 +1562,7 @@ ON_EXIT:
 \r
   @retval SHELL_SUCCESS  The ping processed successfullly.\r
   @retval others         The ping processed unsuccessfully.\r
-  \r
+\r
 **/\r
 SHELL_STATUS\r
 EFIAPI\r
@@ -1584,7 +1584,7 @@ ShellCommandRunPing (
   CHAR16              *ProblemParam;\r
 \r
   //\r
-  // we use IPv6 buffers to hold items... \r
+  // we use IPv6 buffers to hold items...\r
   // make sure this is enough space!\r
   //\r
   ASSERT(sizeof(EFI_IPv4_ADDRESS        ) <= sizeof(EFI_IPv6_ADDRESS         ));\r
@@ -1617,7 +1617,7 @@ ShellCommandRunPing (
     // ShellStrToUintn will return 0 when input is 0 or an invalid input string.\r
     //\r
     if ((SendNumber == 0) || (SendNumber > MAX_SEND_NUMBER)) {\r
-      ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellNetwork1HiiHandle, L"ping", ValueStr);  \r
+      ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellNetwork1HiiHandle, L"ping", ValueStr);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
       goto ON_EXIT;\r
     }\r
@@ -1635,7 +1635,7 @@ ShellCommandRunPing (
     // ShellStrToUintn will return 0 when input is 0 or an invalid input string.\r
     //\r
     if ((BufferSize < 16) || (BufferSize > MAX_BUFFER_SIZE)) {\r
-      ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellNetwork1HiiHandle, L"ping", ValueStr);  \r
+      ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellNetwork1HiiHandle, L"ping", ValueStr);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
       goto ON_EXIT;\r
     }\r
@@ -1653,7 +1653,7 @@ ShellCommandRunPing (
   if (ValueStr == NULL) {\r
     ValueStr = ShellCommandLineGetValue (ParamPackage, L"-_s");\r
   }\r
-  \r
+\r
   if (ValueStr != NULL) {\r
     mSrcString = ValueStr;\r
     if (IpChoice == PING_IP_CHOICE_IP6) {\r
@@ -1662,7 +1662,7 @@ ShellCommandRunPing (
       Status = NetLibStrToIp4 (ValueStr, (EFI_IPv4_ADDRESS*)&SrcAddress);\r
     }\r
     if (EFI_ERROR (Status)) {\r
-      ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellNetwork1HiiHandle, L"ping", ValueStr);  \r
+      ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellNetwork1HiiHandle, L"ping", ValueStr);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
       goto ON_EXIT;\r
     }\r
@@ -1672,12 +1672,12 @@ ShellCommandRunPing (
   //\r
   NonOptionCount = ShellCommandLineGetCount(ParamPackage);\r
   if (NonOptionCount < 2) {\r
-    ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellNetwork1HiiHandle, L"ping");  \r
+    ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_FEW), gShellNetwork1HiiHandle, L"ping");\r
     ShellStatus = SHELL_INVALID_PARAMETER;\r
     goto ON_EXIT;\r
   }\r
   if (NonOptionCount > 2) {\r
-    ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellNetwork1HiiHandle, L"ping");  \r
+    ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_TOO_MANY), gShellNetwork1HiiHandle, L"ping");\r
     ShellStatus = SHELL_INVALID_PARAMETER;\r
     goto ON_EXIT;\r
   }\r
@@ -1690,7 +1690,7 @@ ShellCommandRunPing (
       Status = NetLibStrToIp4 (ValueStr, (EFI_IPv4_ADDRESS*)&DstAddress);\r
     }\r
     if (EFI_ERROR (Status)) {\r
-      ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellNetwork1HiiHandle, L"ping", ValueStr);  \r
+      ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellNetwork1HiiHandle, L"ping", ValueStr);\r
       ShellStatus = SHELL_INVALID_PARAMETER;\r
       goto ON_EXIT;\r
     }\r
index ffa677884884a90d4eb98cbd32981ddb1f621012..5914068d72efcee8c341716119f8cdf6cbe7c86a 100644 (file)
@@ -1,7 +1,7 @@
 ##  @file\r
 # Provides shell network1 functions\r
 #\r
-# Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved. <BR>\r
+# Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved. <BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -63,6 +63,6 @@
   gEfiIp4ProtocolGuid                           ## SOMETIMES_CONSUMES\r
   gEfiIp4ServiceBindingProtocolGuid             ## SOMETIMES_CONSUMES\r
   gEfiIp4Config2ProtocolGuid                    ## SOMETIMES_CONSUMES\r
-  \r
+\r
 [Guids]\r
-  gShellNetwork1HiiGuid                         ## SOMETIMES_CONSUMES ## HII
\ No newline at end of file
+  gShellNetwork1HiiGuid                         ## SOMETIMES_CONSUMES ## HII\r
index 7a43ad510ad5e46f36458848bef65cc4c98b2f66..ba549d36c8aff193bbb2363a8ad2bd1fa758758f 100644 (file)
@@ -1,7 +1,7 @@
 // /**\r
 //\r
 // (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
-// Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved. <BR>\r
+// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved. <BR>\r
 // (C) Copyright 2017 Hewlett Packard Enterprise Development LP<BR>\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
@@ -73,7 +73,7 @@
 #string STR_IFCONFIG_CONFLICT_COMMAND         #language en-US    "Conflict commands. Bad command %H%s%N is skipped.\n"\r
 #string STR_IFCONFIG_UNKNOWN_COMMAND          #language en-US    "Unknown commands. Bad command %H%s%N is skipped.\n"\r
 #string STR_IFCONFIG_SET_ADDR_FAILED          #language en-US    "Failed to set address.\n"\r
-#string STR_IFCONFIG_ROUTES_SIZE              #language en-US           "\n%H  Routes (%d entries):\n"\r
+#string STR_IFCONFIG_ROUTES_SIZE              #language en-US     "\n%H  Routes (%d entries):\n"\r
 #string STR_IFCONFIG_ROUTES_ENTRY_INDEX       #language en-US    "%H    Entry[%d]\n"\r
 #string STR_IFCONFIG_SHOW_IP_ADDR             #language en-US    "%12s: %N%d.%d.%d.%d\n"\r
 #string STR_IFCONFIG_INFO_NEWLINE             #language en-US    "\n"\r
 " \r\n"\r
 "  * To configure DNS server address for the eth0 interface:\r\n"\r
 "    fs0:\> ifconfig -s eth0 dns 192.168.0.8 192.168.0.9\r\n"\r
-                                                                  \r
+\r
 \r
 \r
index 2cdf484c06151635ca9733a0025e82443d38e823..27713cf12787a4a499aaf1725c3322c6e7de1da4 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The implementation for Ping6 application.\r
 \r
-  Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -50,7 +50,7 @@ typedef struct _PING6_PRIVATE_DATA {
   EFI_EVENT                   Timer;\r
 \r
   UINT32                      TimerPeriod;\r
-  UINT32                      RttTimerTick;   \r
+  UINT32                      RttTimerTick;\r
   EFI_EVENT                   RttTimer;\r
 \r
   EFI_STATUS                  Status;\r
@@ -199,7 +199,7 @@ Ping6InitRttTimer (
   if (Private->TimerPeriod == 0) {\r
     return EFI_ABORTED;\r
   }\r
-  \r
+\r
   Private->RttTimerTick = 0;\r
   Status = gBS->CreateEvent (\r
                   EVT_TIMER | EVT_NOTIFY_SIGNAL,\r
@@ -245,7 +245,7 @@ Ping6FreeRttTimer (
 \r
 /**\r
   Read the current time.\r
-  \r
+\r
   @param[in]    Private    The pointer to PING6_PRIVATE_DATA.\r
 \r
   @retval the current tick value.\r
@@ -787,11 +787,11 @@ Ping6CreateIpInstance (
 \r
   if (NetIp6IsUnspecifiedAddr (&Private->SrcAddress)) {\r
     //\r
-    // SrcAddress is unspecified. So, both connected and configured interface will be automatic selected. \r
+    // SrcAddress is unspecified. So, both connected and configured interface will be automatic selected.\r
     //\r
     UnspecifiedSrc = TRUE;\r
   }\r
-  \r
+\r
   //\r
   // Source address is required when pinging a link-local address.\r
   //\r
@@ -800,7 +800,7 @@ Ping6CreateIpInstance (
     Status = EFI_INVALID_PARAMETER;\r
     goto ON_ERROR;\r
   }\r
-  \r
+\r
   //\r
   // For each ip6 protocol, check interface addresses list.\r
   //\r
@@ -899,7 +899,7 @@ Ping6CreateIpInstance (
         // Match a certain interface address.\r
         //\r
         break;\r
-      } \r
+      }\r
     }\r
 \r
     if (AddrIndex < IfInfo->AddressInfoCount) {\r
index c090aa4d08be3aad4d9aedb542c01056bce46969..57e0a64825fb075feb5b810fc64adc2f79117aba 100644 (file)
 \r
   ## This determines how many bytes are read out of files at a time for file operations (type, copy, etc...)\r
   gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x1000|UINT32|0x0000000A\r
-  \r
+\r
   ## This determines the max count of history commands\r
   gEfiShellPkgTokenSpaceGuid.PcdShellMaxHistoryCommandCount|0x0020|UINT16|0x00000014\r
 \r