]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.c
ARM Packages: Removed trailing spaces
[mirror_edk2.git] / BeagleBoardPkg / Library / EblCmdLib / EblCmdLib.c
index 4f1a327cea463d8695f07de4b76052f6bd98d90e..46204a4386b6bccb9e62d16b65309e11ab529f2e 100644 (file)
@@ -2,7 +2,7 @@
   Add custom commands for BeagleBoard development.\r
 \r
   Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<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
   Simple arm disassembler via a library\r
 \r
   Argv[0] - symboltable\r
-  Argv[1] - Optional quoted format string \r
+  Argv[1] - Optional quoted format string\r
   Argv[2] - Optional flag\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
@@ -64,7 +64,7 @@ EblSymbolTable (
   UINT32                            PeCoffSizeOfHeaders;\r
   UINT32                            ImageBase;\r
   BOOLEAN                           Elf;\r
-  \r
+\r
   // Need to add lots of error checking on the passed in string\r
   // Default string is for RealView debugger or gdb depending on toolchain used.\r
   if (Argc > 1) {\r
@@ -74,17 +74,17 @@ EblSymbolTable (
     // Assume gdb\r
     Format = "add-symbol-file %a 0x%x";\r
 #else\r
-    // Default to RVCT \r
+    // Default to RVCT\r
     Format = "load /a /ni /np %a &0x%x";\r
 #endif\r
   }\r
   Elf = (Argc > 2) ? FALSE : TRUE;\r
-  \r
+\r
   Status = EfiGetSystemConfigurationTable (&gEfiDebugImageInfoTableGuid, (VOID **)&DebugImageTableHeader);\r
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  \r
+\r
   DebugTable = DebugImageTableHeader->EfiDebugImageInfoTable;\r
   if (DebugTable == NULL) {\r
     return EFI_SUCCESS;\r
@@ -100,13 +100,13 @@ EblSymbolTable (
           if (Elf) {\r
             // ELF and Mach-O images don't include the header so the linked address does not include header\r
             ImageBase += PeCoffSizeOfHeaders;\r
-          } \r
+          }\r
           AsciiPrint (Format, Pdb, ImageBase);\r
           AsciiPrint ("\n");\r
         } else {\r
         }\r
       }\r
-    }  \r
+    }\r
   }\r
 \r
   return EFI_SUCCESS;\r
@@ -121,7 +121,7 @@ EblSymbolTable (
   ARgv[2] - Number of instructions to disassembly (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
@@ -138,22 +138,22 @@ EblDisassembler (
   UINT32  Count;\r
   CHAR8   Buffer[80];\r
   UINT32  ItBlock;\r
-  \r
+\r
   if (Argc < 2) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   Address = AsciiStrHexToUintn (Argv[1]);\r
   Count   = (Argc > 2) ? (UINT32)AsciiStrHexToUintn (Argv[2]) : 20;\r
 \r
-  Ptr = (UINT8 *)(UINTN)Address;  \r
+  Ptr = (UINT8 *)(UINTN)Address;\r
   ItBlock = 0;\r
   do {\r
     CurrentAddress = Ptr;\r
     DisassembleInstruction (&Ptr, TRUE, TRUE, &ItBlock, Buffer, sizeof (Buffer));\r
     AsciiPrint ("0x%08x: %a\n", CurrentAddress, Buffer);\r
   } while (Count-- > 0);\r
\r
+\r
 \r
   return EFI_SUCCESS;\r
 }\r
@@ -203,7 +203,7 @@ CHAR8 *mTokenList[] = {
   ARgv[2] - Number of instructions to disassembly (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
@@ -256,7 +256,7 @@ EblPerformance (
           AsciiPrint ("%6a %6ld ms\n", Token, Milliseconds);\r
           break;\r
         }\r
-      }   \r
+      }\r
     }\r
   } while (Key != 0);\r
 \r