svn commit: r447863 - head/sysutils/e2fsprogs/files
Matthias Andree
mandree at FreeBSD.org
Sat Aug 12 21:49:50 UTC 2017
Author: mandree
Date: Sat Aug 12 21:49:49 2017
New Revision: 447863
URL: https://svnweb.freebsd.org/changeset/ports/447863
Log:
Fix quota warnings in non-LP64 mode (11.x i386).
PR: 221447
Reported by: vvd at unislabs.com
Added:
head/sysutils/e2fsprogs/files/patch-lib_support_mkquota.c (contents, props changed)
Added: head/sysutils/e2fsprogs/files/patch-lib_support_mkquota.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/e2fsprogs/files/patch-lib_support_mkquota.c Sat Aug 12 21:49:49 2017 (r447863)
@@ -0,0 +1,21 @@
+--- lib/support/mkquota.c.orig 2017-07-24 19:15:39 UTC
++++ lib/support/mkquota.c
+@@ -10,6 +10,7 @@
+ #include <errno.h>
+ #include <string.h>
+ #include <fcntl.h>
++#include <inttypes.h>
+
+ #include "ext2fs/ext2_fs.h"
+ #include "ext2fs/ext2fs.h"
+@@ -523,8 +524,8 @@ static int scan_dquots_callback(struct d
+ if (dq->dq_dqb.dqb_curspace != dquot->dq_dqb.dqb_curspace ||
+ dq->dq_dqb.dqb_curinodes != dquot->dq_dqb.dqb_curinodes) {
+ scan_data->usage_is_inconsistent = 1;
+- fprintf(stderr, "[QUOTA WARNING] Usage inconsistent for ID %u:"
+- "actual (%ld, %ld) != expected (%ld, %ld)\n",
++ fprintf(stderr, "[QUOTA WARNING] Usage inconsistent for ID %" PRIu32 ":"
++ "actual (%" PRId64 ", %" PRId64 ") != expected (%" PRId64 ", %" PRId64 ")\n",
+ dq->dq_id, dq->dq_dqb.dqb_curspace,
+ dq->dq_dqb.dqb_curinodes,
+ dquot->dq_dqb.dqb_curspace,
More information about the svn-ports-all
mailing list