On Thu, Nov 21, 2024 at 08:36:58AM +1030, Qu Wenruo wrote: > > > 在 2024/11/20 22:10, Anand Jain 写道: > > Fix format string warnings when printing blksize_t values that vary > > across architectures. The warning occurs because blksize_t is defined > > differently between architectures: aarch64 architectures blksize_t is > > int, on x86-64 it's long-int. Cast the values to long. Fixes warnings > > as below. > > > > seek_sanity_test.c:110:45: warning: format '%ld' expects argument of type > > 'long int', but argument 3 has type 'blksize_t' {aka 'int'} > > > > attr_replace_test.c:70:22: warning: format '%ld' expects argument of type > > 'long int', but argument 3 has type '__blksize_t' {aka 'int'} > > Why not just use %zu instead?