From: Darrick J. Wong Date: Fri, 25 Feb 2022 22:42:16 +0000 (-0500) Subject: xfs_repair: explicitly cast resource usage counts in do_warn X-Git-Tag: v5.15.0-rc1~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10eea7105da0be617e20b16a666be41d150b24fc;p=thirdparty%2Fxfsprogs-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 Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- diff --git a/repair/quotacheck.c b/repair/quotacheck.c index 758160d31..ba87081ce 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; }