initdisk.c: fix wrong printf format specifiers, fixes #122

This commit is contained in:
Bernd Boeckmann 2024-02-03 18:53:06 +01:00 committed by Kenneth J Davis
parent db71b1a783
commit 9a7d22701d

View File

@ -477,10 +477,10 @@ VOID CalculateFATData(ddt * pddt, ULONG NumSectors, UBYTE FileSystem)
maxcl = FAT16MAX;
}
DebugPrintf(("%ld sectors for FAT+data, starting with %d sectors/cluster\n", fatdata, defbpb->bpb_nsector));
DebugPrintf(("%lu sectors for FAT+data, starting with %u sectors/cluster\n", fatdata, defbpb->bpb_nsector));
do
{
DebugPrintf(("Trying with %d sectors/cluster:\n", defbpb->bpb_nsector));
DebugPrintf(("Trying with %u sectors/cluster:\n", defbpb->bpb_nsector));
divisor = fatentpersec * defbpb->bpb_nsector + NFAT; /* # of fat entries per cluster + 2 */
rest = (unsigned)(fatdata % divisor);
fatlength = (CLUSTER)(fatdata / divisor);
@ -494,7 +494,7 @@ VOID CalculateFATData(ddt * pddt, ULONG NumSectors, UBYTE FileSystem)
if (maxclust > maxcl)
maxclust = maxcl;
DebugPrintf(("FAT: #clu=%lu, fatlen=%lu, maxclu=%lu, limit=%lu\n",
clust, fatlength, maxclust, maxcl));
(ULONG)clust, fatlength, maxclust, (ULONG)maxcl));
if (clust > maxclust - 2)
{
clust = 0;