X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2FSource%2FC%2FGenCrc32%2FGenCrc32.c;h=8ece9a841268cd3bc18ee71504d45332b47940f1;hb=4afd3d042215afe68d00b9ab8c32f063a3a1c03f;hp=681fe4f1e67a375848ebc23bad7de5d677803da0;hpb=a365eed476687881ce0ed49af7d483fd3cb0c491;p=mirror_edk2.git diff --git a/BaseTools/Source/C/GenCrc32/GenCrc32.c b/BaseTools/Source/C/GenCrc32/GenCrc32.c index 681fe4f1e6..8ece9a8412 100644 --- a/BaseTools/Source/C/GenCrc32/GenCrc32.c +++ b/BaseTools/Source/C/GenCrc32/GenCrc32.c @@ -1,6 +1,6 @@ /** @file -Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.
+Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -55,7 +55,7 @@ Returns: --*/ { - fprintf (stdout, "%s Version %d.%d %s \n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION); + fprintf (stdout, "%s Version %d.%d Build %s \n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION); } VOID @@ -81,26 +81,32 @@ Returns: // // Summary usage // - fprintf (stdout, "\nUsage: %s -e|-d [options] \n\n", UTILITY_NAME); + fprintf (stdout, "Usage: GenCrc32 -e|-d [options] \n\n"); // // Copyright declaration // - fprintf (stdout, "Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.\n\n"); + fprintf (stdout, "Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.\n\n"); // // Details Option // - fprintf (stdout, "Options:\n"); - fprintf (stdout, " -o FileName, --output FileName\n\ - File will be created to store the ouput content.\n"); - fprintf (stdout, " -e, --encode Calculate CRC32 value for the input file.\n"); - fprintf (stdout, " -d, --decode Verify CRC32 value for the input file.\n"); - fprintf (stdout, " -v, --verbose Turn on verbose output with informational messages.\n"); - fprintf (stdout, " -q, --quiet Disable all messages except key message and fatal error\n"); - fprintf (stdout, " --debug level Enable debug messages, at input debug level.\n"); - fprintf (stdout, " --version Show program's version number and exit.\n"); - fprintf (stdout, " -h, --help Show this help message and exit.\n"); + fprintf (stdout, "optional arguments:\n"); + fprintf (stdout, " -h, --help Show this help message and exit\n"); + fprintf (stdout, " --version Show program's version number and exit\n"); + fprintf (stdout, " --debug [DEBUG] Output DEBUG statements, where DEBUG_LEVEL is 0 (min)\n\ + - 9 (max)\n"); + fprintf (stdout, " -v, --verbose Print informational statements\n"); + fprintf (stdout, " -q, --quiet Returns the exit code, error messages will be\n\ + displayed\n"); + fprintf (stdout, " -s, --silent Returns only the exit code; informational and error\n\ + messages are not displayed\n"); + fprintf (stdout, " -e, --encode Calculate CRC32 value for the input file\n"); + fprintf (stdout, " -d, --decode Verify CRC32 value for the input file\n"); + fprintf (stdout, " -o OUTPUT_FILENAME, --output OUTPUT_FILENAME\n\ + Output file name\n"); + fprintf (stdout, " --sfo Reserved for future use\n"); + } int @@ -164,7 +170,6 @@ Returns: argv ++; if ((stricmp (argv[0], "-h") == 0) || (stricmp (argv[0], "--help") == 0)) { - Version (); Usage (); return STATUS_SUCCESS; }