- 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
\r
fread (FileBuffer, 1, FileSize, InFile);\r
fclose (InFile);\r
\r
fread (FileBuffer, 1, FileSize, InFile);\r
fclose (InFile);\r
// Done, write output file.\r
//\r
fwrite (&Crc32Value, 1, sizeof (Crc32Value), OutFile);\r
// Done, write output file.\r
//\r
fwrite (&Crc32Value, 1, sizeof (Crc32Value), OutFile);\r
fwrite (FileBuffer, 1, FileSize, OutFile);\r
fwrite (FileBuffer, 1, FileSize, OutFile);\r
Error (NULL, 0, 3000, "Invalid", "Calculate CRC32 value failed!");\r
goto Finish;\r
}\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
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
// Done, write output file.\r
//\r
fwrite (FileBuffer + sizeof (UINT32), 1, FileSize - sizeof (UINT32), OutFile);\r