Skip to content

Commit 9a7d227

Browse files
boeckmannPerditionC
authored andcommitted
initdisk.c: fix wrong printf format specifiers, fixes #122
1 parent db71b1a commit 9a7d227

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/initdisk.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,10 @@ VOID CalculateFATData(ddt * pddt, ULONG NumSectors, UBYTE FileSystem)
477477
maxcl = FAT16MAX;
478478
}
479479

480-
DebugPrintf(("%ld sectors for FAT+data, starting with %d sectors/cluster\n", fatdata, defbpb->bpb_nsector));
480+
DebugPrintf(("%lu sectors for FAT+data, starting with %u sectors/cluster\n", fatdata, defbpb->bpb_nsector));
481481
do
482482
{
483-
DebugPrintf(("Trying with %d sectors/cluster:\n", defbpb->bpb_nsector));
483+
DebugPrintf(("Trying with %u sectors/cluster:\n", defbpb->bpb_nsector));
484484
divisor = fatentpersec * defbpb->bpb_nsector + NFAT; /* # of fat entries per cluster + 2 */
485485
rest = (unsigned)(fatdata % divisor);
486486
fatlength = (CLUSTER)(fatdata / divisor);
@@ -494,7 +494,7 @@ VOID CalculateFATData(ddt * pddt, ULONG NumSectors, UBYTE FileSystem)
494494
if (maxclust > maxcl)
495495
maxclust = maxcl;
496496
DebugPrintf(("FAT: #clu=%lu, fatlen=%lu, maxclu=%lu, limit=%lu\n",
497-
clust, fatlength, maxclust, maxcl));
497+
(ULONG)clust, fatlength, maxclust, (ULONG)maxcl));
498498
if (clust > maxclust - 2)
499499
{
500500
clust = 0;

0 commit comments

Comments
 (0)