Cast to intmax_t when using %jd format.

MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2005-01-08 17:19:56 +00:00
parent 2353e77b0f
commit e075f345b6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139909

View File

@ -299,7 +299,7 @@ main(int argc, char *argv[])
fssize = mediasize / sectorsize;
else if (fssize > mediasize / sectorsize)
errx(1, "%s: maximum file system size is %jd",
special, (off_t)(mediasize / sectorsize));
special, (intmax_t)(mediasize / sectorsize));
}
pp = NULL;
lp = getdisklabel(special);