diff options
author | Zeng Heng <zengheng4@huawei.com> | 2022-09-19 06:47:14 +1000 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2022-09-19 06:47:14 +1000 |
commit | 78b0f58bdfef45aa9f3c7fbbd9b4d41abad6d85f (patch) | |
tree | 194c34f45f47112fcdf2dcdf7d57ad3ff9e4ccc4 /fs/xfs/libxfs/xfs_bmap.c | |
parent | 5617104003ae11a1ab383dbd63228b7645c26207 (diff) | |
download | lwn-78b0f58bdfef45aa9f3c7fbbd9b4d41abad6d85f.tar.gz lwn-78b0f58bdfef45aa9f3c7fbbd9b4d41abad6d85f.zip |
xfs: clean up "%Ld/%Lu" which doesn't meet C standard
The "%Ld" specifier, which represents long long unsigned,
doesn't meet C language standard, and even more,
it makes people easily mistake with "%ld", which represent
long unsigned. So replace "%Ld" with "lld".
Do the same with "%Lu".
Signed-off-by: Zeng Heng <zengheng4@huawei.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_bmap.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_bmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c index e56723dc9cd5..49d0d4ea63fc 100644 --- a/fs/xfs/libxfs/xfs_bmap.c +++ b/fs/xfs/libxfs/xfs_bmap.c @@ -294,7 +294,7 @@ xfs_check_block( else thispa = XFS_BMBT_PTR_ADDR(mp, block, j, dmxr); if (*thispa == *pp) { - xfs_warn(mp, "%s: thispa(%d) == pp(%d) %Ld", + xfs_warn(mp, "%s: thispa(%d) == pp(%d) %lld", __func__, j, i, (unsigned long long)be64_to_cpu(*thispa)); xfs_err(mp, "%s: ptrs are equal in node\n", |