From 3402aac7d985bf8a9f9d3c639f3fe93609380513 Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Tue, 19 Aug 2014 13:29:52 +0000 Subject: ARM Packages: Removed trailing spaces Trailing spaces create issue/warning when generating/applying patches. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15833 6f19259b-4bc3-4df7-8a09-765794883524 --- EmbeddedPkg/EblExternCmd/EntryPointGlue.c | 14 +++++++------- EmbeddedPkg/EblExternCmd/Main.c | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'EmbeddedPkg/EblExternCmd') diff --git a/EmbeddedPkg/EblExternCmd/EntryPointGlue.c b/EmbeddedPkg/EblExternCmd/EntryPointGlue.c index 87757dfd47..d0e549bdc1 100644 --- a/EmbeddedPkg/EblExternCmd/EntryPointGlue.c +++ b/EmbeddedPkg/EblExternCmd/EntryPointGlue.c @@ -1,5 +1,5 @@ /** @file - Glue code that contains the EFI entry point and converts it to an EBL + Glue code that contains the EFI entry point and converts it to an EBL ASCII Argc, Argv sytle entry point @@ -88,7 +88,7 @@ ParseArguments ( } else if (*Char != ' ') { Argv[Arg++] = Char; LookingForArg = FALSE; - } + } } else { // Looking for the terminator of an Argv[] entry if ((InQuote && (*Char == '"')) || (!InQuote && (*Char == ' '))) { @@ -112,12 +112,12 @@ ParseArguments ( return; } - + /** - Embedded Boot Loader (EBL) - A simple EFI command line application for embedded + Embedded Boot Loader (EBL) - A simple EFI command line application for embedded devices. PcdEmbeddedAutomaticBootCommand is a complied in command line that gets executed automatically. The ; separator allows multiple commands for each command line. @@ -133,7 +133,7 @@ EFIAPI EdkExternCmdEntry ( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable - ) + ) { EFI_STATUS Status; EFI_LOADED_IMAGE_PROTOCOL *ImageInfo; @@ -144,10 +144,10 @@ EdkExternCmdEntry ( if (EFI_ERROR (Status)) { Argc = 0; } else { - // Looks like valid commands were passed in. + // Looks like valid commands were passed in. ParseArguments (ImageInfo->LoadOptions, ImageInfo->LoadOptionsSize, &Argc, Argv); } - + return EblMain (Argc, Argv); } diff --git a/EmbeddedPkg/EblExternCmd/Main.c b/EmbeddedPkg/EblExternCmd/Main.c index 9e75c909cc..dbfe336899 100644 --- a/EmbeddedPkg/EblExternCmd/Main.c +++ b/EmbeddedPkg/EblExternCmd/Main.c @@ -1,10 +1,10 @@ /** @file - Example of an external EBL command. It's loaded via EBL start command. + Example of an external EBL command. It's loaded via EBL start command. Argc and Argv are passed in via "" of the EBL command line. Start fs0:\EdkExternCmd.efi "Argv[0] Argv[1] 2" - will launch this command with + will launch this command with Argv[0] = "Argv[0]" Argv[1] = "Argv[2]" Argv[2] = "3" @@ -29,7 +29,7 @@ Entry point with Argc, Argv. Put your code here. @param Argc Number of command arguments in Argv - @param Argv Array of strings that represent the parsed command line. + @param Argv Array of strings that represent the parsed command line. Argv[0] is the command name @return EFI_SUCCESS @@ -47,7 +47,7 @@ EblMain ( for (Index = 0; Index < Argc; Index++) { AsciiPrint ("Argv[%d] = %a\n", Index, Argv[Index]); } - + return EFI_SUCCESS; } -- cgit v1.2.3