#include <stdlib.h>\r
#include <string.h>\r
\r
+#include "ParseInf.h"\r
#include "EfiUtilityMsgs.h"\r
#include "CommonLib.h"\r
#include "Crc32.h"\r
\r
int\r
main (\r
- INT32 argc,\r
+ int argc,\r
CHAR8 *argv[]\r
)\r
/*++\r
goto Finish;\r
}\r
if (LogLevel > 9) {\r
- Error (NULL, 0, 1003, "Invalid option value", "Debug Level range is 0-9, current input level is %d", LogLevel);\r
+ Error (NULL, 0, 1003, "Invalid option value", "Debug Level range is 0-9, current input level is %d", (int) LogLevel);\r
goto Finish;\r
}\r
SetPrintLevel (LogLevel);\r
\r
fread (FileBuffer, 1, FileSize, InFile);\r
fclose (InFile);\r
- VerboseMsg ("the size of the input file is %d bytes", FileSize);\r
+ VerboseMsg ("the size of the input file is %u bytes", (unsigned) FileSize);\r
\r
//\r
// Open output file\r
// Done, write output file.\r
//\r
fwrite (&Crc32Value, 1, sizeof (Crc32Value), OutFile);\r
- VerboseMsg ("The calculated CRC32 value is 0x%08x", Crc32Value);\r
+ VerboseMsg ("The calculated CRC32 value is 0x%08x", (unsigned) Crc32Value);\r
fwrite (FileBuffer, 1, FileSize, OutFile);\r
- VerboseMsg ("the size of the encoded file is %d bytes", FileSize + sizeof (UINT32));\r
+ VerboseMsg ("the size of the encoded file is %u bytes", (unsigned) FileSize + sizeof (UINT32));\r
} else {\r
//\r
// Verify Crc32 Value\r
Error (NULL, 0, 3000, "Invalid", "Calculate CRC32 value failed!");\r
goto Finish;\r
}\r
- VerboseMsg ("The calculated CRC32 value is 0x%08x and File Crc32 value is 0x%08x", Crc32Value, *(UINT32 *)FileBuffer);\r
+ VerboseMsg ("The calculated CRC32 value is 0x%08x and File Crc32 value is 0x%08x", (unsigned) Crc32Value, (unsigned) (*(UINT32 *)FileBuffer));\r
if (Crc32Value != *(UINT32 *)FileBuffer) {\r
Error (NULL, 0, 3000, "Invalid", "CRC32 value of input file is not correct!");\r
Status = STATUS_ERROR;\r
// Done, write output file.\r
//\r
fwrite (FileBuffer + sizeof (UINT32), 1, FileSize - sizeof (UINT32), OutFile);\r
- VerboseMsg ("the size of the decoded file is %d bytes", FileSize - sizeof (UINT32));\r
+ VerboseMsg ("the size of the decoded file is %u bytes", (unsigned) FileSize - sizeof (UINT32));\r
}\r
\r
Finish:\r