mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-26 07:55:01 +00:00
Cast these to intmax_t before printing to fix build bustage. Better
solutions welcome.
This commit is contained in:
parent
bec67fd3bb
commit
683d4eac76
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204672
@ -191,8 +191,8 @@ mkfs(struct partition *pp, char *fsys)
|
||||
exit(17);
|
||||
}
|
||||
if (sblock.fs_fsize < sectorsize) {
|
||||
printf("increasing fragment size from %d to sector size (%d)\n",
|
||||
sblock.fs_fsize, sectorsize);
|
||||
printf("increasing fragment size from %d to sector size (%jd)\n",
|
||||
sblock.fs_fsize, (intmax_t)sectorsize);
|
||||
sblock.fs_fsize = sectorsize;
|
||||
}
|
||||
if (sblock.fs_bsize > MAXBSIZE) {
|
||||
@ -337,8 +337,8 @@ mkfs(struct partition *pp, char *fsys)
|
||||
} else if (density < minfragsperinode * fsize) {
|
||||
origdensity = density;
|
||||
density = minfragsperinode * fsize;
|
||||
fprintf(stderr, "density increased from %d to %d\n",
|
||||
origdensity, density);
|
||||
fprintf(stderr, "density increased from %d to %jd\n",
|
||||
origdensity, (intmax_t)density);
|
||||
}
|
||||
origdensity = density;
|
||||
for (;;) {
|
||||
@ -346,8 +346,9 @@ mkfs(struct partition *pp, char *fsys)
|
||||
if (fragsperinode < minfragsperinode) {
|
||||
bsize <<= 1;
|
||||
fsize <<= 1;
|
||||
printf("Block size too small for a file system %s %d\n",
|
||||
"of this size. Increasing blocksize to", bsize);
|
||||
printf("Block size too small for a file system %s %jd\n",
|
||||
"of this size. Increasing blocksize to",
|
||||
(intmax_t)bsize);
|
||||
goto restart;
|
||||
}
|
||||
minfpg = fragsperinode * INOPB(&sblock);
|
||||
@ -371,7 +372,8 @@ mkfs(struct partition *pp, char *fsys)
|
||||
density -= sblock.fs_fsize;
|
||||
}
|
||||
if (density != origdensity)
|
||||
printf("density reduced from %d to %d\n", origdensity, density);
|
||||
printf("density reduced from %d to %jd\n", origdensity,
|
||||
(intmax_t)density);
|
||||
/*
|
||||
* Start packing more blocks into the cylinder group until
|
||||
* it cannot grow any larger, the number of cylinder groups
|
||||
|
Loading…
Reference in New Issue
Block a user