Author: delphij
Date: Mon Sep 28 04:30:31 2020
New Revision: 366215
URL: https://svnweb.freebsd.org/changeset/base/366215

Log:
  Use %ju and cast to (uintmax_t) to avoid using PRI* macros.
  
  Suggested by: kevlo

Modified:
  head/sbin/fsck_msdosfs/dir.c

Modified: head/sbin/fsck_msdosfs/dir.c
==============================================================================
--- head/sbin/fsck_msdosfs/dir.c        Mon Sep 28 00:54:50 2020        
(r366214)
+++ head/sbin/fsck_msdosfs/dir.c        Mon Sep 28 04:30:31 2020        
(r366215)
@@ -422,8 +422,8 @@ checksize(struct fat_descriptor *fat, u_char *p, struc
                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;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to