Import revision 667eef4ac6396ffe2d705b401a2a09f60ab38fe7 from FreeBSD.

Change-Id: I23f5307232024b7ddabb6441cb1b6cd4e8aab641
diff --git a/dir.c b/dir.c
index 018250a..010bd65 100644
--- a/dir.c
+++ b/dir.c
@@ -422,7 +422,7 @@
 		physicalSize = (u_int64_t)chainsize * boot->ClusterSize;
 	}
 	if (physicalSize < dir->size) {
-		pwarn("size of %s is %u, should at most be %zu\n",
+		pwarn("size of %s is %u, should at most be %" PRIu64 "\n",
 		      fullpath(dir), dir->size, physicalSize);
 		if (ask(1, "Truncate")) {
 			dir->size = physicalSize;