Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Sep 2020 04:30:31 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r366215 - head/sbin/fsck_msdosfs
Message-ID:  <202009280430.08S4UVo0077564@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009280430.08S4UVo0077564>