]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Ebl/Dir.c
ARM Packages: Removed trailing spaces
[mirror_edk2.git] / EmbeddedPkg / Ebl / Dir.c
index 5e28ecf61a0bbd3a28b4ce371a2bded406669006..c45f67b95bdca1d35450774a296ecbba54fb95e7 100644 (file)
@@ -40,22 +40,22 @@ GLOBAL_REMOVE_IF_UNREFERENCED   CHAR8 *gFvFileType[] = {
 \r
 /**\r
   Perform a dir on a device. The device must support Simple File System Protocol\r
-  or the FV protocol. \r
+  or the FV protocol.\r
 \r
   Argv[0] - "dir"\r
-  Argv[1] - Device Name:path. Path is optional \r
+  Argv[1] - Device Name:path. Path is optional\r
   Argv[2] - Optional filename to match on. A leading * means match substring\r
   Argv[3] - Optional FV file type\r
 \r
   dir fs1:\efi      ; perform a dir on fs1: device in the efi directory\r
-  dir fs1:\efi *.efi; perform a dir on fs1: device in the efi directory but \r
+  dir fs1:\efi *.efi; perform a dir on fs1: device in the efi directory but\r
                       only print out files that contain the string *.efi\r
-  dir fv1:\         ; perform a dir on fv1: device in the efi directory \r
+  dir fv1:\         ; perform a dir on fv1: device in the efi directory\r
                     NOTE: fv devices do not contain subdirs\r
   dir fv1:\ * PEIM  ; will match all files of type PEIM\r
 \r
   @param  Argc   Number of command arguments in Argv\r
-  @param  Argv   Array of strings that represent the parsed command line. \r
+  @param  Argv   Array of strings that represent the parsed command line.\r
                  Argv[0] is the command name\r
 \r
   @return EFI_SUCCESS\r
@@ -71,7 +71,7 @@ EblDirCmd (
   EFI_OPEN_FILE                 *File;\r
   EFI_FILE_INFO                 *DirInfo;\r
   UINTN                         ReadSize;\r
-  UINTN                         CurrentRow;  \r
+  UINTN                         CurrentRow;\r
   CHAR16                        *MatchSubString;\r
   EFI_STATUS                    GetNextFileStatus;\r
   UINTN                         Key;\r
@@ -151,11 +151,11 @@ EblDirCmd (
     do {\r
       Type = SearchType;\r
       GetNextFileStatus = Fv->GetNextFile (\r
-                                Fv, \r
+                                Fv,\r
                                 &Key,\r
-                                &Type,  \r
-                                &NameGuid, \r
-                                &Attributes, \r
+                                &Type,\r
+                                &NameGuid,\r
+                                &Attributes,\r
                                 &Size\r
                                 );\r
       if (!EFI_ERROR (GetNextFileStatus)) {\r
@@ -165,7 +165,7 @@ EblDirCmd (
         Size = 0;\r
         Status = Fv->ReadFile (\r
                       Fv,\r
-                      &NameGuid, \r
+                      &NameGuid,\r
                       Section,\r
                       &Size,\r
                       &Type,\r
@@ -173,10 +173,10 @@ EblDirCmd (
                       &AuthenticationStatus\r
                       );\r
         if (!((Status == EFI_BUFFER_TOO_SMALL) || !EFI_ERROR (Status))) {\r
-          // EFI_SUCCESS or EFI_BUFFER_TOO_SMALL mean size is valid \r
+          // EFI_SUCCESS or EFI_BUFFER_TOO_SMALL mean size is valid\r
           Size = 0;\r
         }\r
-        \r
+\r
         TypeStr = (Type <= EFI_FV_FILETYPE_FIRMWARE_VOLUME_IMAGE) ? gFvFileType[Type] : "UNKNOWN";\r
 \r
         // read the UI seciton to do a name match.\r
@@ -208,12 +208,12 @@ EblDirCmd (
         }\r
       }\r
     } while (!EFI_ERROR (GetNextFileStatus));\r
-       \r
+\r
     if (SearchType == EFI_FV_FILETYPE_ALL) {\r
       AsciiPrint ("%,20d bytes in files %,d bytes free\n", TotalSize, File->FvSize - File->FvHeaderSize - TotalSize);\r
     }\r
-    \r
-    \r
+\r
+\r
   } else if ((File->Type == EfiOpenFileSystem) || (File->Type == EfiOpenBlockIo)) {\r
     // Simple File System DIR\r
 \r
@@ -233,7 +233,7 @@ EblDirCmd (
       if (UnicodeFileName[0] == '*') {\r
         MatchSubString = &UnicodeFileName[1];\r
       }\r
-    } \r
+    }\r
 \r
     File->FsFileHandle->SetPosition (File->FsFileHandle, 0);\r
     for (CurrentRow = 0;;) {\r
@@ -247,7 +247,7 @@ EblDirCmd (
         if (DirInfo == NULL) {\r
           goto Done;\r
         }\r
-        \r
+\r
         // Read the data\r
         Status = File->FsFileHandle->Read (File->FsFileHandle, &ReadSize, DirInfo);\r
         if ((EFI_ERROR (Status)) || (ReadSize == 0)) {\r
@@ -256,7 +256,7 @@ EblDirCmd (
       } else {\r
         break;\r
       }\r
-      \r
+\r
       if (MatchSubString != NULL) {\r
         if (StrStr (&DirInfo->FileName[0], MatchSubString) == NULL) {\r
           // does not match *name argument, so skip\r
@@ -278,7 +278,7 @@ EblDirCmd (
       if (EblAnyKeyToContinueQtoQuit (&CurrentRow, FALSE)) {\r
         break;\r
       }\r
-      \r
+\r
       FreePool (DirInfo);\r
     }\r
 \r
@@ -297,10 +297,10 @@ Done:
   Change the Current Working Directory\r
 \r
   Argv[0] - "cd"\r
-  Argv[1] - Device Name:path. Path is optional \r
+  Argv[1] - Device Name:path. Path is optional\r
 \r
   @param  Argc   Number of command arguments in Argv\r
-  @param  Argv   Array of strings that represent the parsed command line. \r
+  @param  Argv   Array of strings that represent the parsed command line.\r
                  Argv[0] is the command name\r
 \r
   @return EFI_SUCCESS\r
@@ -314,8 +314,8 @@ EblCdCmd (
 {\r
   if (Argc <= 1) {\r
     return EFI_SUCCESS;\r
-  } \r
-  \r
+  }\r
+\r
   return EfiSetCwd (Argv[1]);\r
 }\r
 \r
@@ -345,7 +345,7 @@ VOID
 EblInitializeDirCmd (\r
   VOID\r
   )\r
-{  \r
+{\r
   if (FeaturePcdGet (PcdEmbeddedDirCmd)) {\r
     EblAddCommands (mCmdDirTemplate, sizeof (mCmdDirTemplate)/sizeof (EBL_COMMAND_TABLE));\r
   }\r