diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-03-02 09:57:04 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-03-02 09:57:04 +1100 |
commit | 5d518bd6cec6f921ee1be504094762496afb45fb (patch) | |
tree | 5ff49c5b747ce3f67591fb4b11bedbc045525359 /fs/xfs | |
parent | a08ee40a79653d082911cab9fbeff94baa7714cb (diff) | |
download | linux-stable-5d518bd6cec6f921ee1be504094762496afb45fb.tar.gz linux-stable-5d518bd6cec6f921ee1be504094762496afb45fb.tar.bz2 linux-stable-5d518bd6cec6f921ee1be504094762496afb45fb.zip |
xfs: fix format specifier , should be %llx and not %llu
busyp->bno is printed with a %llu format specifier when the
intention is to print a hexadecimal value. Trivial fix to
use %llx instead. Found with smatch static analysis:
fs/xfs/xfs_discard.c:229 xfs_discard_extents() warn: '0x'
prefix is confusing together with '%llu' specifier
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_discard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_discard.c b/fs/xfs/xfs_discard.c index e85a9519a5ae..272c3f8b6f7d 100644 --- a/fs/xfs/xfs_discard.c +++ b/fs/xfs/xfs_discard.c @@ -227,7 +227,7 @@ xfs_discard_extents( GFP_NOFS, 0); if (error && error != -EOPNOTSUPP) { xfs_info(mp, - "discard failed for extent [0x%llu,%u], error %d", + "discard failed for extent [0x%llx,%u], error %d", (unsigned long long)busyp->bno, busyp->length, error); |