Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Aug 2017 21:49:49 +0000 (UTC)
From:      Matthias Andree <mandree@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r447863 - head/sysutils/e2fsprogs/files
Message-ID:  <201708122149.v7CLnnPM097407@repo.freebsd.org>

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



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