1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-22 07:20:00 +00:00

Use %ju and cast to (uintmax_t) to avoid using PRI* macros.

Suggested by:	kevlo
This commit is contained in:
Xin LI 2020-09-28 04:30:31 +00:00
parent b65eb2f8a8
commit 5e8221100a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366215

View File

@ -422,8 +422,8 @@ checksize(struct fat_descriptor *fat, u_char *p, struct dosDirEntry *dir)
physicalSize = (u_int64_t)chainsize * boot->ClusterSize;
}
if (physicalSize < dir->size) {
pwarn("size of %s is %u, should at most be %" PRIu64 "\n",
fullpath(dir), dir->size, physicalSize);
pwarn("size of %s is %u, should at most be %ju\n",
fullpath(dir), dir->size, (uintmax_t)physicalSize);
if (ask(1, "Truncate")) {
dir->size = physicalSize;
p[28] = (u_char)physicalSize;