Use %ju and cast to (uintmax_t) to avoid using PRI* macros.
Suggested by: kevlo
This commit is contained in:
parent
b65eb2f8a8
commit
5e8221100a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366215
@ -422,8 +422,8 @@ checksize(struct fat_descriptor *fat, u_char *p, struct dosDirEntry *dir)
|
|||||||
physicalSize = (u_int64_t)chainsize * boot->ClusterSize;
|
physicalSize = (u_int64_t)chainsize * boot->ClusterSize;
|
||||||
}
|
}
|
||||||
if (physicalSize < dir->size) {
|
if (physicalSize < dir->size) {
|
||||||
pwarn("size of %s is %u, should at most be %" PRIu64 "\n",
|
pwarn("size of %s is %u, should at most be %ju\n",
|
||||||
fullpath(dir), dir->size, physicalSize);
|
fullpath(dir), dir->size, (uintmax_t)physicalSize);
|
||||||
if (ask(1, "Truncate")) {
|
if (ask(1, "Truncate")) {
|
||||||
dir->size = physicalSize;
|
dir->size = physicalSize;
|
||||||
p[28] = (u_char)physicalSize;
|
p[28] = (u_char)physicalSize;
|
||||||
|
Loading…
Reference in New Issue
Block a user