]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_repair: explicitly cast resource usage counts in do_warn
authorDarrick J. Wong <djwong@kernel.org>
Fri, 25 Feb 2022 22:42:16 +0000 (17:42 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 25 Feb 2022 22:42:16 +0000 (17:42 -0500)
Explicitly cast the ondisk dquot counter argument to do_warn when
complaining about incorrect quota counts.  This avoids build warnings on
ppc64le.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
repair/quotacheck.c

index 758160d3176e6db52a88b2dc9a8c6092053179de..ba87081ce82565cb9ba5c8acae94dfc540f44b50 100644 (file)
@@ -306,21 +306,24 @@ qc_check_dquot(
        if (be64_to_cpu(ddq->d_bcount) != qrec->bcount) {
                do_warn(_("%s id %u has bcount %llu, expected %"PRIu64"\n"),
                                qflags_typestr(dquots->type), id,
-                               be64_to_cpu(ddq->d_bcount), qrec->bcount);
+                               (unsigned long long)be64_to_cpu(ddq->d_bcount),
+                               qrec->bcount);
                chkd_flags = 0;
        }
 
        if (be64_to_cpu(ddq->d_rtbcount) != qrec->rtbcount) {
                do_warn(_("%s id %u has rtbcount %llu, expected %"PRIu64"\n"),
                                qflags_typestr(dquots->type), id,
-                               be64_to_cpu(ddq->d_rtbcount), qrec->rtbcount);
+                               (unsigned long long)be64_to_cpu(ddq->d_rtbcount),
+                               qrec->rtbcount);
                chkd_flags = 0;
        }
 
        if (be64_to_cpu(ddq->d_icount) != qrec->icount) {
                do_warn(_("%s id %u has icount %llu, expected %"PRIu64"\n"),
                                qflags_typestr(dquots->type), id,
-                               be64_to_cpu(ddq->d_icount), qrec->icount);
+                               (unsigned long long)be64_to_cpu(ddq->d_icount),
+                               qrec->icount);
                chkd_flags = 0;
        }