summaryrefslogtreecommitdiff
path: root/Tools/CCode/Source/CreateMtFile/CreateMtFile.c
diff options
context:
space:
mode:
authorywang <ywang@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-02 20:17:36 +0000
committerywang <ywang@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-02 20:17:36 +0000
commitf091efb3cb895692a55c310c368943bb4c108ba1 (patch)
tree51e140f919c4a6c0f6172549038b6c4cbdd24087 /Tools/CCode/Source/CreateMtFile/CreateMtFile.c
parenta3ab2a47d9ecb2295802726fd17f048c14519aab (diff)
downloadedk2-platforms-f091efb3cb895692a55c310c368943bb4c108ba1.tar.xz
Added or modified utility version and usage display.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2159 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/CCode/Source/CreateMtFile/CreateMtFile.c')
-rw-r--r--Tools/CCode/Source/CreateMtFile/CreateMtFile.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/Tools/CCode/Source/CreateMtFile/CreateMtFile.c b/Tools/CCode/Source/CreateMtFile/CreateMtFile.c
index 7d6d2d95bd..8bb07293e3 100644
--- a/Tools/CCode/Source/CreateMtFile/CreateMtFile.c
+++ b/Tools/CCode/Source/CreateMtFile/CreateMtFile.c
@@ -46,13 +46,13 @@ ProcessArgs (
static
void
-CMFUsage (
+Usage (
VOID
);
static
void
-CMFVersion (
+Version (
VOID
);
@@ -157,30 +157,30 @@ Returns:
Argc--;
if (Argc < 1) {
- CMFUsage();
+ Usage();
return EFI_INVALID_PARAMETER;
}
if ((strcmp(Argv[0], "-h") == 0) || (strcmp(Argv[0], "--help") == 0) ||
(strcmp(Argv[0], "-?") == 0) || (strcmp(Argv[0], "/?") == 0)) {
- CMFUsage();
+ Usage();
return EFI_INVALID_PARAMETER;
}
if ((strcmp(Argv[0], "-V") == 0) || (strcmp(Argv[0], "--version") == 0)) {
- CMFVersion();
+ Version();
return EFI_INVALID_PARAMETER;
}
if (Argc < 2) {
- CMFUsage ();
+ Usage ();
return EFI_INVALID_PARAMETER;
}
//
// If first arg is dash-option, then print usage.
//
if (Argv[0][0] == '-') {
- CMFUsage ();
+ Usage ();
return EFI_INVALID_PARAMETER;
}
//
@@ -212,7 +212,7 @@ Returns:
if ((Argv[0][0] == '0') && ((Argv[0][1] == 'x') || (Argv[0][1] == 'X'))) {
if (sscanf (Argv[0], "%x", &Options->FileSize) != 1) {
printf ("ERROR: Invalid file size '%s'\n", Argv[0]);
- CMFUsage ();
+ Usage ();
return EFI_INVALID_PARAMETER;
}
//
@@ -221,7 +221,7 @@ Returns:
} else {
if (sscanf (Argv[0], "%d", &Options->FileSize) != 1) {
printf ("ERROR: Invalid file size '%s'\n", Argv[0]);
- CMFUsage ();
+ Usage ();
return EFI_INVALID_PARAMETER;
}
}
@@ -237,14 +237,14 @@ Returns:
static
void
-CMFVersion(
+Version(
void
)
/*++
Routine Description:
- Print out version information for Strip.
+ Print out version information for this utility.
Arguments:
@@ -265,7 +265,7 @@ Returns:
//
static
void
-CMFUsage (
+Usage (
VOID
)
/*++
@@ -284,14 +284,14 @@ Returns:
--*/
{
- CMFVersion();
+ Version();
- printf ("\n Usage: %s OutFileName FileSize \n\
- where: \n\
- OutFileName is the name of the output file to generate \n\
- FileSize is the size of the file to create \n\
- Examples: \n\
- %s OutFile.bin 32K \n\
- %s OutFile.bin 0x1000 \n",UTILITY_NAME, UTILITY_NAME, UTILITY_NAME);
+ printf ("\nUsage: %s OutFileName FileSize \n\
+ where: \n\
+ OutFileName is the name of the output file to generate \n\
+ FileSize is the size of the file to create \n\
+ Examples: \n\
+ %s OutFile.bin 32K \n\
+ %s OutFile.bin 0x1000 \n",UTILITY_NAME, UTILITY_NAME, UTILITY_NAME);
}