From: Darrick J. Wong Date: Thu, 6 Jan 2022 22:13:17 +0000 (-0800) Subject: xfs_repair: explicitly cast resource usage counts in do_warn X-Git-Tag: xfsprogs-5.15-fixes_2022-01-19~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=79efe996dbe4a6533a03def587e4072f0a624773;p=xfsprogs-dev.git xfs_repair: explicitly cast resource usage counts in do_warn 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 --- diff --git a/repair/quotacheck.c b/repair/quotacheck.c index 758160d3..ba87081c 100644 --- a/repair/quotacheck.c +++ b/repair/quotacheck.c @@ -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; }