From f091efb3cb895692a55c310c368943bb4c108ba1 Mon Sep 17 00:00:00 2001 From: ywang Date: Tue, 2 Jan 2007 20:17:36 +0000 Subject: 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 --- Tools/CCode/Source/GenDepex/GenDepex.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'Tools/CCode/Source/GenDepex') 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 ] \n", + "\nUsage: %s -I InputFile -O OutputFile [-P ] \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 for reading.\n"); - GDUsage(); + Usage(); return EFI_ABORTED; } if (OutFile == NULL) { printf ("Can not open for writting.\n"); - GDUsage(); + Usage(); return EFI_ABORTED; } -- cgit v1.1