]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kselftest/arm64: mte: fix printf type warnings about longs
authorAndre Przywara <andre.przywara@arm.com>
Fri, 16 Aug 2024 15:32:51 +0000 (16:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:47:43 +0000 (19:47 +0100)
commit8ce88918e4d8913f890682a55efecc8e1f00eac5
treea5c8b6d5c9c58f9ab920ddce952f5d492b6abe48
parent8025d65d6242be46273023a773381f9b35e90b56
kselftest/arm64: mte: fix printf type warnings about longs

[ Upstream commit 96dddb7b9406259baace9a1831e8da155311be6f ]

When checking MTE tags, we print some diagnostic messages when the tests
fail. Some variables uses there are "longs", however we only use "%x"
for the format specifier.

Update the format specifiers to "%lx", to match the variable types they
are supposed to print.

Fixes: f3b2a26ca78d ("kselftest/arm64: Verify mte tag inclusion via prctl")
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20240816153251.2833702-9-andre.przywara@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/arm64/mte/check_tags_inclusion.c