]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Sample/Tools/Source/GenCRC32Section/GenCRC32Section.c
Sync all bug fixes between EDK1.04 and EDK1.06 into EdkCompatibilityPkg.
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Tools / Source / GenCRC32Section / GenCRC32Section.c
index b1f3f1eec480f0663684e63f5c0ae5bd7e587ff2..5bbbd14c7e036de24827c8a27eed113e7ecb7c57 100644 (file)
@@ -1,6 +1,6 @@
 /*++\r
 \r
-Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -35,9 +35,9 @@ Abstract:
 \r
 #include EFI_PROTOCOL_DEFINITION (GuidedSectionExtraction)\r
 \r
-#define TOOLVERSION   "0.2"\r
+#define UTILITY_VERSION "v1.0"\r
 \r
-#define UTILITY_NAME  "GenCrc32Section"\r
+#define UTILITY_NAME    "GenCrc32Section"\r
 \r
 EFI_GUID  gEfiCrc32SectionGuid = EFI_CRC32_GUIDED_SECTION_EXTRACTION_PROTOCOL_GUID;\r
 \r
@@ -134,12 +134,26 @@ PrintUsage (
   VOID\r
   )\r
 {\r
-  printf ("Usage:\n");\r
-  printf (UTILITY_NAME " -i \"inputfile1\" \"inputfile2\" -o \"outputfile\" \n");\r
-  printf ("   -i \"inputfile\":\n ");\r
-  printf ("       specifies the input files that would be signed to CRC32 Guided section.\n");\r
-  printf ("   -o \"outputfile\":\n");\r
-  printf ("       specifies the output file that is a CRC32 Guided section.\n");\r
+  int         Index;\r
+  const char  *Str[] = {\r
+    UTILITY_NAME" "UTILITY_VERSION" - Intel Generate CRC32 Section Utility",\r
+    "  Copyright (C), 2004 - 2008 Intel Corporation",\r
+    \r
+#if ( defined(UTILITY_BUILD) && defined(UTILITY_VENDOR) )\r
+    "  Built from "UTILITY_BUILD", project of "UTILITY_VENDOR,\r
+#endif\r
+    "",\r
+    "Usage:",\r
+    "  "UTILITY_NAME" [OPTION]",\r
+    "Options:",\r
+    "  -i Input1 ...  specifies the input file(s) that would be signed to CRC32",\r
+    "                 Guided section.",\r
+    "  -o Output      specifies the output file that is a CRC32 Guided section",\r
+    NULL\r
+  };\r
+  for (Index = 0; Str[Index] != NULL; Index++) {\r
+    fprintf (stdout, "%s\n", Str[Index]);\r
+  }\r
 }\r
 \r
 INT32\r