]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/GenPage/GenPage.c
Sync EDKII BaseTools to BaseTools project r1971
[mirror_edk2.git] / BaseTools / Source / C / GenPage / GenPage.c
index 99fbc1e4720683660a3284bc9e8e876389189ddc..c72011045cfdcfb6e942cf0af7ff05b645646148 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 \r
-Copyright 2006 - 2008, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2006 - 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
 http://opensource.org/licenses/bsd-license.php                                            \r
@@ -35,6 +35,7 @@ Abstract:
 #include <string.h>\r
 #include "VirtualMemory.h"\r
 #include "EfiUtilityMsgs.h"\r
+#include "ParseInf.h"\r
 \r
 #define EFI_PAGE_BASE_OFFSET_IN_LDR 0x70000\r
 #define EFI_PAGE_BASE_ADDRESS       (EFI_PAGE_BASE_OFFSET_IN_LDR + 0x20000)\r
@@ -91,7 +92,7 @@ Returns:
 --*/\r
 {\r
   printf ("%s v%d.%d -Utility to generate the EfiLoader image containing page table.\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION);\r
-  printf ("Copyright (c) 2008 - 2009 Intel Corporation. All rights reserved.\n");\r
+  printf ("Copyright (c) 2008 - 2010 Intel Corporation. All rights reserved.\n");\r
 }\r
 \r
 VOID\r
@@ -252,7 +253,7 @@ return:
   FileSize = ftell (NoPageFile);\r
   fseek (NoPageFile, 0, SEEK_SET);\r
   if (FileSize > gPageTableOffsetInFile) {\r
-    Error (NoPageFileName, 0, 0x4002, "Invalid parameter option", "Input file size (0x%x) exceeds the Page Table Offset (0x%x)", FileSize, gPageTableOffsetInFile);\r
+    Error (NoPageFileName, 0, 0x4002, "Invalid parameter option", "Input file size (0x%lx) exceeds the Page Table Offset (0x%x)", FileSize, (unsigned) gPageTableOffsetInFile);\r
     fclose (PageFile);\r
     fclose (NoPageFile);\r
     return -1;\r
@@ -380,7 +381,7 @@ main (
         return STATUS_ERROR;\r
       }\r
       if (TempValue > 9) {\r
-        Error (NULL, 0, 1003, "Invalid option value", "Debug Level range is 0-9, currnt input level is %d", TempValue);\r
+        Error (NULL, 0, 1003, "Invalid option value", "Debug Level range is 0-9, currnt input level is %d", (int) TempValue);\r
         return STATUS_ERROR;\r
       }\r
       argc -= 2;\r