From 10eea7105da0be617e20b16a666be41d150b24fc Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Fri, 25 Feb 2022 17:42:16 -0500 Subject: [PATCH] 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 --- repair/quotacheck.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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; } -- 2.47.3