Skip to content

Commit

Permalink
initdisk.c: fix wrong printf format specifiers, fixes #122
Browse files Browse the repository at this point in the history
  • Loading branch information
boeckmann authored and PerditionC committed Feb 4, 2024
1 parent db71b1a commit 9a7d227
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/initdisk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit 9a7d227

Please sign in to comment.