aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2020-09-28 04:30:31 +0000
committerXin LI <delphij@FreeBSD.org>2020-09-28 04:30:31 +0000
commit5e8221100a2db96e41eb23ae692b22e2124db3c6 (patch)
tree55f3e05c1389a95eab177407d502428c88d875bf
parentb65eb2f8a83fb102bcacaa0eafff96ac290a2d5a (diff)
downloadsrc-5e8221100a2db96e41eb23ae692b22e2124db3c6.tar.gz
src-5e8221100a2db96e41eb23ae692b22e2124db3c6.zip
Use %ju and cast to (uintmax_t) to avoid using PRI* macros.
Suggested by: kevlo
Notes
Notes: svn path=/head/; revision=366215
-rw-r--r--sbin/fsck_msdosfs/dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fsck_msdosfs/dir.c b/sbin/fsck_msdosfs/dir.c
index 010bd65f95c1..471f6cc0335e 100644
--- a/sbin/fsck_msdosfs/dir.c
+++ b/sbin/fsck_msdosfs/dir.c
@@ -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;