summaryrefslogtreecommitdiff
path: root/Tools/CCode/Source/GenDepex
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/GenDepex
parenta3ab2a47d9ecb2295802726fd17f048c14519aab (diff)
downloadedk2-f091efb3cb895692a55c310c368943bb4c108ba1.zip
edk2-f091efb3cb895692a55c310c368943bb4c108ba1.tar.gz
edk2-f091efb3cb895692a55c310c368943bb4c108ba1.tar.bz2
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/GenDepex')
-rw-r--r--Tools/CCode/Source/GenDepex/GenDepex.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/Tools/CCode/Source/GenDepex/GenDepex.c b/Tools/CCode/Source/GenDepex/GenDepex.c
index b010102..e8481b5 100644
--- a/Tools/CCode/Source/GenDepex/GenDepex.c
+++ b/Tools/CCode/Source/GenDepex/GenDepex.c
@@ -86,7 +86,7 @@ ParseDepex (
);
VOID
-GDVersion (
+Version (
VOID
)
/*++
@@ -115,7 +115,7 @@ Returns:
}
VOID
-GDUsage (
+Usage (
VOID
)
/*++
@@ -134,9 +134,9 @@ Returns:
--*/
{
- GDVersion();
+ Version();
printf (
- "\n Usage: %s -I InputFile -O OutputFile [-P <Optional Boundary for padding up>] \n",
+ "\nUsage: %s -I InputFile -O OutputFile [-P <Optional Boundary for padding up>] \n",
UTILITY_NAME
);
printf (" Where:\n");
@@ -857,24 +857,24 @@ Returns:
Pad_Flag = FALSE;
if (argc < 1) {
- GDUsage();
+ Usage();
return -1;
}
if ((strcmp(argv[1], "-h") == 0) || (strcmp(argv[1], "--help") == 0) ||
(strcmp(argv[1], "-?") == 0) || (strcmp(argv[1], "/?") == 0)) {
- GDUsage();
+ Usage();
return 0;
}
if ((strcmp(argv[1], "-V") == 0) || (strcmp(argv[1], "--version") == 0)) {
- GDVersion();
+ Version();
return 0;
}
if (argc < 5) {
printf ("Not enough arguments\n");
- GDUsage();
+ Usage();
return EFI_INVALID_PARAMETER;
}
@@ -920,13 +920,13 @@ Returns:
if (InFile == NULL) {
printf ("Can not open <INFILE> for reading.\n");
- GDUsage();
+ Usage();
return EFI_ABORTED;
}
if (OutFile == NULL) {
printf ("Can not open <OUTFILE> for writting.\n");
- GDUsage();
+ Usage();
return EFI_ABORTED;
}