From: Colin Ian King Date: Tue, 1 Mar 2016 22:57:04 +0000 (+1100) Subject: xfs: fix format specifier , should be %llx and not %llu X-Git-Tag: v4.14-rc1~3583^2~2^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d518bd6cec6f921ee1be504094762496afb45fb;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Brian Foster Signed-off-by: Dave Chinner --- diff --git a/fs/xfs/xfs_discard.c b/fs/xfs/xfs_discard.c index e85a951..272c3f8 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);