mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-25 23:04:57 +02:00
initdisk.c: fix wrong printf format specifiers, fixes #122
This commit is contained in:
parent
db71b1a783
commit
9a7d22701d
@ -477,10 +477,10 @@ VOID CalculateFATData(ddt * pddt, ULONG NumSectors, UBYTE FileSystem)
|
|||||||
maxcl = FAT16MAX;
|
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
|
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 */
|
divisor = fatentpersec * defbpb->bpb_nsector + NFAT; /* # of fat entries per cluster + 2 */
|
||||||
rest = (unsigned)(fatdata % divisor);
|
rest = (unsigned)(fatdata % divisor);
|
||||||
fatlength = (CLUSTER)(fatdata / divisor);
|
fatlength = (CLUSTER)(fatdata / divisor);
|
||||||
@ -494,7 +494,7 @@ VOID CalculateFATData(ddt * pddt, ULONG NumSectors, UBYTE FileSystem)
|
|||||||
if (maxclust > maxcl)
|
if (maxclust > maxcl)
|
||||||
maxclust = maxcl;
|
maxclust = maxcl;
|
||||||
DebugPrintf(("FAT: #clu=%lu, fatlen=%lu, maxclu=%lu, limit=%lu\n",
|
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)
|
if (clust > maxclust - 2)
|
||||||
{
|
{
|
||||||
clust = 0;
|
clust = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user