summaryrefslogtreecommitdiff
path: root/BaseTools
diff options
context:
space:
mode:
authorlhauch <larry.hauch@intel.com>2014-08-25 20:06:55 +0000
committerlhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524>2014-08-25 20:06:55 +0000
commitd90aa46258726412d9b9d77cfeb879adad837067 (patch)
treef94887bf8ead193d6004232a6c45477b62b80c51 /BaseTools
parent59577231a763edbf3a765f0900b3db3dd610972c (diff)
downloadedk2-platforms-d90aa46258726412d9b9d77cfeb879adad837067.tar.xz
BootSectImage.exe, EfiLdrImage.exe and Split.exe tools have incorrect output from the --version option.
This patch fixes the --version option output and corrects the description displayed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch <larry.hauch@intel.com> Reviewed-by: Gao, Liming <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15890 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/C/BootSectImage/bootsectimage.c9
-rw-r--r--BaseTools/Source/C/EfiLdrImage/EfiLdrImage.c3
-rw-r--r--BaseTools/Source/C/Split/Split.c4
3 files changed, 12 insertions, 4 deletions
diff --git a/BaseTools/Source/C/BootSectImage/bootsectimage.c b/BaseTools/Source/C/BootSectImage/bootsectimage.c
index fd367c28b3..b4fb340c2b 100644
--- a/BaseTools/Source/C/BootSectImage/bootsectimage.c
+++ b/BaseTools/Source/C/BootSectImage/bootsectimage.c
@@ -56,8 +56,10 @@ Returns:
--*/
{
- printf ("%s v%d.%d %s - Utility to break a file into two pieces at the specified offset.\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
- printf ("Copyright (c) 1999-2010 Intel Corporation. All rights reserved.\n");
+ printf ("%s Version %d.%d %s\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
+ printf ("Copyright (c) 1999-2014 Intel Corporation. All rights reserved.\n");
+ printf ("\n The BootSectImage tool prints information or patch destination file by source\n");
+ printf (" file for BIOS Parameter Block (BPB) or Master Boot Record (MBR).\n");
}
void
@@ -889,6 +891,9 @@ main (
ProcessMbr = TRUE;
} else if (strcmp (*argv, "-v") == 0 || strcmp (*argv, "--verbose") == 0) {
Verbose = TRUE;
+ } else if (strcmp (*argv, "--version") == 0) {
+ Version();
+ return 0;
} else if ((stricmp (*argv, "-d") == 0) || (stricmp (*argv, "--debug") == 0)) {
argc--; argv++;
if (argc < 1) {
diff --git a/BaseTools/Source/C/EfiLdrImage/EfiLdrImage.c b/BaseTools/Source/C/EfiLdrImage/EfiLdrImage.c
index a76102cbb3..e1d9de4d3c 100644
--- a/BaseTools/Source/C/EfiLdrImage/EfiLdrImage.c
+++ b/BaseTools/Source/C/EfiLdrImage/EfiLdrImage.c
@@ -83,8 +83,9 @@ Returns:
--*/
{
- printf ("%s v%d.%d %s -Utility to break a file into two pieces at the request offset.\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
+ printf ("%s Version %d.%d %s\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
printf ("Copyright (c) 1999-2014 Intel Corporation. All rights reserved.\n");
+ printf ("\n The EfiLdrImage tool is used to combine PE files into EFILDR image with Efi loader header.\n");
}
VOID
diff --git a/BaseTools/Source/C/Split/Split.c b/BaseTools/Source/C/Split/Split.c
index e8fea63510..b63aef78f9 100644
--- a/BaseTools/Source/C/Split/Split.c
+++ b/BaseTools/Source/C/Split/Split.c
@@ -57,8 +57,10 @@ Returns:
--*/
{
- printf ("%s v%d.%d %s -Utility to break a file into two pieces at the request offset.\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
+ printf ("%s Version %d.%d %s\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
printf ("Copyright (c) 1999-2014 Intel Corporation. All rights reserved.\n");
+ printf ("\n SplitFile creates two Binary files either in the same directory as the current working\n");
+ printf (" directory or in the specified directory.\n");
}
void