break;
default:
- printf("Unknown relocatation type %d, address 0x%lx\n",
- pReloc->Type, pReloc->VirtualAddress);
+ printf("Unknown relocation type %u, address 0x%x\n",
+ pReloc->Type, (unsigned)pReloc->VirtualAddress);
}
pReloc++;
if (!pData)
{
fclose(pSourceFile);
- fprintf(stderr, "Failed to allocate %ld bytes\n", nFileSize);
+ fprintf(stderr, "Failed to allocate %lu bytes\n", nFileSize);
return -3;
}
{
free(pData);
fclose(pSourceFile);
- fprintf(stderr, "Failed to read %ld bytes from source file\n", nFileSize);
+ fprintf(stderr, "Failed to read %lu bytes from source file\n", nFileSize);
return -4;
}
{
free(pData);
fclose(pDestFile);
- fprintf(stderr, "Failed to write %ld bytes to destination file\n",
- pSectionHeader->SizeOfRawData);
+ fprintf(stderr, "Failed to write %u bytes to destination file\n",
+ (unsigned int)pSectionHeader->SizeOfRawData);
return -6;
}