mirror of
https://github.com/FDOS/kernel.git
synced 2025-04-08 17:15:17 +02:00
Fix minor issues in diagnostic messages in utils/exeflat.c
This commit is contained in:
parent
7eec989c22
commit
2111b543c1
@ -125,8 +125,8 @@ static int exeflat(const char *srcfile, const char *dstfile,
|
||||
((DWORD) (header->exPages - 1) << 9) + header->exExtraBytes -
|
||||
header->exHeaderSize * 16UL;
|
||||
printf("image size (less header) = %lu = 0x%lx\n", size, size);
|
||||
printf("first relocation offset = %u = 0x%u\n", header->exOverlay,
|
||||
header->exOverlay);
|
||||
printf("first relocation offset = %u = 0x%x\n", header->exRelocTable,
|
||||
header->exRelocTable);
|
||||
|
||||
/* first read file into memory chunks */
|
||||
fseek(src, header->exHeaderSize * 16UL, SEEK_SET);
|
||||
@ -150,7 +150,7 @@ static int exeflat(const char *srcfile, const char *dstfile,
|
||||
}
|
||||
if (fread(*curbuf, sizeof(char), bufsize, src) != bufsize)
|
||||
{
|
||||
printf("Source file read error %ld %d\n", to_xfer, bufsize);
|
||||
printf("Source file read error %ld %d\n", to_xfer, (int)bufsize);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
@ -381,7 +381,7 @@ int main(int argc, char **argv)
|
||||
if (silentcount >= LENGTH(silentSegments))
|
||||
{
|
||||
printf("can't handle more then %d silent's\n",
|
||||
LENGTH(silentSegments));
|
||||
(int)LENGTH(silentSegments));
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user