]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/GenPage/GenPage.c
Sync basetools' source and binary files with r1707 of the basetools project.
[mirror_edk2.git] / BaseTools / Source / C / GenPage / GenPage.c
index 99fbc1e4720683660a3284bc9e8e876389189ddc..dac55889d512bbd944217151b45452312e48a54a 100644 (file)
@@ -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
@@ -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